[umbrello-devel] [umbrello] [Bug 355616] Generated python code does not have attributes or a constructor

Sean Engelhardt via KDE Bugzilla bugzilla_noreply at kde.org
Mon Dec 21 15:01:22 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=355616

--- Comment #4 from Sean Engelhardt <omniasoltemperat at yahoo.de> ---
Hello.

> 1. non-static attributes having an initial value should be initialized in the constructor. 
> 2. If there is no constructor defined in the model, the generator should add a constructor, 
> in which non-static attributes could be initialized.
> 3. static attributes having an initial value should be initialized in the class scope

This is quite accurate. Besides, it must not be necessary to define the
__init__ in UML. This would not be a PIM (Platform indipendant model) anymore. 

I will attach my Testcase, the code I get and the code I expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list