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

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Mon Dec 21 16:26:35 UTC 2015


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

--- Comment #16 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Sean Engelhardt from comment #4)
> 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. 
Umbrello in the current state only supports class attributes and operations. If
a class is name MyClass, the constructor has to be modeled by adding a method
named MyClass().

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


More information about the umbrello-devel mailing list