[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
Sun Dec 20 13:43:55 UTC 2015


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

--- Comment #3 from Ralf Habacker <ralf.habacker at freenet.de> ---
>From the appended test case I get the following generated python code:
---------------------------------------------
from new_class_1 import *

class MyClass(object):

  """


  :version:
  :author:
  """

  """ ATTRIBUTES



  my_attribute  (private)

  """

  def __init__(self):
    """


    @return  :
    @author
    """
    pass
---------------------------------------------

I can see an __init__() method and a doc string refering to the attribute 
'my_attribute  (private)'.

>From the initial comment I guess you want to say, that 

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

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


More information about the umbrello-devel mailing list