<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>109909</bug_id>
          
          <creation_ts>2005-07-30 21:14:59 +0000</creation_ts>
          <short_desc>python code generation missing class attributes, init code.</short_desc>
          <delta_ts>2005-09-17 10:34:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>umbrello</product>
          <component>general</component>
          <version>1.4.2</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charles Phoenix">phoenixreads</reporter>
          <assigned_to name="Umbrello Development Group">umbrello-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>2</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>361653</commentid>
    <comment_count>0</comment_count>
    <who name="Charles Phoenix">phoenixreads</who>
    <bug_when>2005-07-30 21:15:00 +0000</bug_when>
    <thetext>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 -&gt; CPP



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

Class MyClass:
&apos;&apos;&apos;
....

Attributes
&apos;&apos;&apos;

unless there is an appropriate keyword.






3) Class missing...
if __name__==&apos;__main__&apos;:
    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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>