Bug 109909 - python code generation missing class attributes, init code.
Summary: python code generation missing class attributes, init code.
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.4.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-30 21:14 UTC by Charles Phoenix
Modified: 2005-09-17 10:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.