Update of /cvsroot/pymerase/pymerase/examples/xmiSchool
In directory sc8-pr-cvs1:/tmp/cvs-serv1231
Modified Files:
TestSchool.py createapi.py creategraphvizuml.py
createpytkwidgets.py createsql.py
Log Message:
Updated for setup.py install script
Index: TestSchool.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/TestSchool.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestSchool.py 9 Dec 2002 22:14:27 -0000 1.1
--- TestSchool.py 5 Feb 2003 23:07:59 -0000 1.2
***************
*** 15,19 ****
#sys.path.append(os.path.abspath(".."))
import pymerase
! from util import NameMangling
# import code to use api
--- 15,19 ----
#sys.path.append(os.path.abspath(".."))
import pymerase
! from pymerase.util import NameMangling
# import code to use api
Index: createapi.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/createapi.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** createapi.py 19 Nov 2002 00:55:44 -0000 1.4
--- createapi.py 5 Feb 2003 23:07:59 -0000 1.5
***************
*** 8,13 ****
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import input.parseXMI
! import output.CreateDBAPI
if __name__ == "__main__":
--- 8,13 ----
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import pymerase.input.parseXMI
! import pymerase.output.CreateDBAPI
if __name__ == "__main__":
***************
*** 16,20 ****
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, input.parseXMI, outputPath, output.CreateDBAPI)
--- 16,20 ----
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateDBAPI)
Index: creategraphvizuml.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/creategraphvizuml.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** creategraphvizuml.py 1 Feb 2003 01:22:57 -0000 1.1
--- creategraphvizuml.py 5 Feb 2003 23:07:59 -0000 1.2
***************
*** 8,13 ****
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import input.parseXMI
! import output.CreateGraphvizUML
if __name__ == "__main__":
--- 8,13 ----
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import pymerase.input.parseXMI
! import pymerase.output.CreateGraphvizUML
if __name__ == "__main__":
***************
*** 16,20 ****
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, input.parseXMI, outputPath, output.CreateGraphvizUML)
--- 16,20 ----
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateGraphvizUML)
Index: createpytkwidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/createpytkwidgets.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** createpytkwidgets.py 12 Dec 2002 21:31:29 -0000 1.1
--- createpytkwidgets.py 5 Feb 2003 23:07:59 -0000 1.2
***************
*** 8,13 ****
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import input.parseXMI
! import output.CreatePyTkWidgets
if __name__ == "__main__":
--- 8,13 ----
# NOTE: so we have to manually import the modules we're using
# NOTE: and pass them to pymerase.run
! import pymerase.input.parseXMI
! import pymerase.output.CreatePyTkWidgets
if __name__ == "__main__":
***************
*** 16,20 ****
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, input.parseXMI, outputPath, output.CreatePyTkWidgets)
--- 16,20 ----
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreatePyTkWidgets)
Index: createsql.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/createsql.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** createsql.py 19 Nov 2002 00:55:44 -0000 1.3
--- createsql.py 5 Feb 2003 23:07:59 -0000 1.4
***************
*** 5,10 ****
import pymerase
! import input.parseXMI
! import output.CreateDBAPI
if __name__ == "__main__":
--- 5,10 ----
import pymerase
! import pymerase.input.parseXMI
! import pymerase.output.CreateDBAPI
if __name__ == "__main__":
***************
*** 12,15 ****
outputPath = os.path.abspath("./school.sql")
! pymerase.run(schema, input.parseXMI, outputPath, output.CreateSQL)
--- 12,15 ----
outputPath = os.path.abspath("./school.sql")
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateSQL)
|