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

--- Comment #3 from Ralf Habacker <ralf.habac...@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 watching all bug changes.

Reply via email to