Bug 109909

Summary: python code generation missing class attributes, init code.
Product: [Applications] umbrello Reporter: Charles Phoenix <phoenixreads>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: wishlist    
Priority: NOR    
Version: 1.4.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Charles Phoenix 2005-07-30 21:15:00 UTC
Version:           1.4.2 (using KDE 3.4.2, Gentoo)
Compiler:          gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)
OS:                Linux (i686) release 2.6.11-gentoo-r11

missing elements. 

1) no class attributes generated. Attributes would be
Class MyClass:
    public_attribute =
    _protected_attribute =
    __private_attribute =

default values would most likely be None, unless otherwise specified

an option? to include getters and setter functions for protected and private attributes. It is closer to pure OOP and allows for better transition to another OOP language. e.g., python prototyping -> CPP



2) no class attribute documentation generated. Documentation would be something like...

Class MyClass:
'''
....

Attributes
'''

unless there is an appropriate keyword.






3) Class missing...
if __name__=='__main__':
    MyClass()

This is a very common methodology, especially in testing, perhaps another option?


4) Subclasses missing  the init function...
    def __init__(self, foobar):
        Super.__init__(self, foobar)

Again optional but there is a greater than 50% chance I would call the superclass.