Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv11859
Modified Files:
CreateGraphvizUML.py
Log Message:
changed print statements to warn system
Index: CreateGraphvizUML.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreateGraphvizUML.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CreateGraphvizUML.py 1 Apr 2003 22:17:22 -0000 1.7
--- CreateGraphvizUML.py 30 May 2003 00:37:41 -0000 1.8
***************
*** 42,45 ****
--- 42,50 ----
#from pymerase.ClassMembers import getAllAssociationEnds
+ from pymerase.util.Warnings import DebugWarning
+ from pymerase.util.Warnings import InfoWarning
+ import warnings
+ from warnings import warn
+
############################
# Globals
***************
*** 133,138 ****
#Iterate through the tables/classes and process the data
for tbl in tables:
! print "Class(%s)-->Base(%s)" % (tbl.getName(TRANSLATOR_NAME),
! tbl.getBaseClassNames(TRANSLATOR_NAME))
label = indent + "c%s [label=\"{<CLASS_NAME>\\n|<ATTRIB_NAME>| }\"]" % (counter)
--- 138,144 ----
#Iterate through the tables/classes and process the data
for tbl in tables:
! warn("Class(%s)-->Base(%s)" % (tbl.getName(TRANSLATOR_NAME),
! tbl.getBaseClassNames(TRANSLATOR_NAME)),
! DebugWarning)
label = indent + "c%s [label=\"{<CLASS_NAME>\\n|<ATTRIB_NAME>| }\"]" % (counter)
***************
*** 169,173 ****
f.write(text)
f.close()
! print os.linesep \
! + "Graphviz UML Generation Complete... Good Bye." \
! + os.linesep
--- 175,178 ----
f.write(text)
f.close()
! warn("Graphviz UML Generation Complete... Good Bye.", InfoWarning)
!
|