Update of /cvsroot/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv13088
Modified Files:
CreateReport.py
Log Message:
now output's class inheritance information
and inheritance of associationEnds
Index: CreateReport.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/output/CreateReport.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CreateReport.py 5 Feb 2003 22:58:33 -0000 1.3
--- CreateReport.py 12 Feb 2003 01:26:58 -0000 1.4
***************
*** 40,44 ****
from pymerase.ClassMembers import getAllAttributes
! from pymerase.ClassMembers import getAllAssociations
############################
--- 40,44 ----
from pymerase.ClassMembers import getAllAttributes
! from pymerase.ClassMembers import getAllAssociationEnds
############################
***************
*** 61,64 ****
--- 61,69 ----
text.append("CLASS: %s" % (tbl.getName(TRANSLATOR_NAME)))
+ baseClassNames = tbl.getBaseClassNames(TRANSLATOR_NAME)
+ if len(baseClassNames) >= 1:
+ for baseClass in baseClassNames:
+ text.append(" Inherits From: %s" % (baseClass))
+
#Process each attribute in a given table (class)
for attribute in getAllAttributes(tables, tbl, TRANSLATOR_NAME):
***************
*** 77,81 ****
text.append(" isPrimaryKey = %s" % (attribute.isPrimaryKey()))
! for assocEnd in tbl.getAssociationEnds().values():
text.append(" ASSOC END:")
text.append(" Name = %s" % (assocEnd.getName(TRANSLATOR_NAME)))
--- 82,86 ----
text.append(" isPrimaryKey = %s" % (attribute.isPrimaryKey()))
! for assocEnd in getAllAssociationEnds(tables, tbl, TRANSLATOR_NAME):
text.append(" ASSOC END:")
text.append(" Name = %s" % (assocEnd.getName(TRANSLATOR_NAME)))
|