[umbrello] [Bug 449462] New: Python class functions return value wrong in class widget
Jess
bugzilla_noreply at kde.org
Tue Feb 1 16:39:17 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=449462
Bug ID: 449462
Summary: Python class functions return value wrong in class
widget
Product: umbrello
Version: Git
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: importer
Assignee: umbrello-devel at kde.org
Reporter: jess.jones.unitedkingdom at protonmail.com
Target Milestone: ---
Created attachment 146130
--> https://bugs.kde.org/attachment.cgi?id=146130&action=edit
source code to import
Python class functions return value wrong, after importing python code.
STEPS TO REPRODUCE
1. Import file entity.py
2. Make the class diagram by dropping from treeview
3. Python class functions return value wrong
Examples:
def validDirection(self, direction):
if direction is not STOP:
if self.name in self.node.access[direction]:
if self.node.neighbors[direction] is not None:
return True
return False
(this returns string in class widget while it's a boolean)
More errors like this (see python code)
OBSERVED RESULT
Python class functions return value wrong
EXPECTED RESULT
Return value should be the same as in source code
SOFTWARE/OS VERSIONS
Windows: git 126264fd KDE binary factory
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list