Changeset 2037

Show
Ignore:
Timestamp:
08/27/07 23:42:41 (1 year ago)
Author:
arj..@yirdis.nl
Message:

cleanup of utils directory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/utils/browseUML.py

    r181 r2037  
    1919    done.append(cls) 
    2020    print cls.__name__ + ":" 
    21     dict = cls._attrdef 
     21    dict = cls.__dict__ 
    2222    for key in dict.keys(): 
    23         print "\t" + key + ":", 
    24         if type(dict[key][0]) is type(Sequence): 
    25             print "Sequence of " + dict[key][1].__name__, 
    26         else: 
    27             print "Instance of " + dict[key][1].__name__, 
    28         if len(dict[key]) > 2: 
    29             print "( <-> " + dict[key][2] + ")" 
    30         else: 
    31             print "" 
     23        print "\t" + key + ":", str(dict[key]) 
    3224    for base in cls.__bases__: 
    3325        if base not in done: