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

Sean Engelhardt via KDE Bugzilla bugzilla_noreply at kde.org
Thu Nov 19 23:33:13 UTC 2015


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

            Bug ID: 355616
           Summary: Generated python code does not have attributes or a
                    constructor
           Product: umbrello
           Version: 2.17.0 (KDE Applications 15.08.0)
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: omniasoltemperat at yahoo.de

When making a UML2 Class diagram and generating python-code, the generated code
will have classes and all proper inheritences, but no attributes what so ever.

The constructor is also missing.

Reproducible: Always

Steps to Reproduce:
1. Start Umbrello
2. Create a class diagram
3. Add some classes, inheritances, etc.
4. Add an attribute to a class
5. Use the Code -> Code Generation-wizzard co create python code
6. Watch the generated code

Actual Results:  
Code does not contain any attributes nor a constructor or anything useful
except from opperations.

Expected Results:  
Code does have attributes and constructor and like

class MyClass:

    def __init__(self):
        self.my_attribute = "some value"


one cannot chose the python-version to use.

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


More information about the umbrello-devel mailing list