Update of /cvsroot/pymerase/pymerase/examples/xmiSchool
In directory sc8-pr-cvs1:/tmp/cvs-serv24284
Modified Files:
createapi.py creategraphvizuml.py
Log Message:
switched back to speficying input & output translators by name instead of imported module
Index: createapi.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/createapi.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** createapi.py 5 Feb 2003 23:07:59 -0000 1.5
--- createapi.py 12 May 2003 21:50:09 -0000 1.6
***************
*** 5,20 ****
import pymerase
- # NOTE: Jython can't use the python way to load modules based on their name
- # 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__":
! schema = os.path.abspath("./school.xmi")
outputPath = os.path.abspath("./school")
! #pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateDBAPI)
--- 5,15 ----
import pymerase
if __name__ == "__main__":
! schema = os.path.abspath("./school.zargo")
outputPath = os.path.abspath("./school")
! pymerase.run(schema, 'parseXMI', outputPath, 'CreateDBAPI')
!
Index: creategraphvizuml.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/creategraphvizuml.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** creategraphvizuml.py 5 Feb 2003 23:07:59 -0000 1.2
--- creategraphvizuml.py 12 May 2003 21:50:09 -0000 1.3
***************
*** 5,20 ****
import pymerase
- # NOTE: Jython can't use the python way to load modules based on their name
- # 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__":
! schema = os.path.abspath("./school.xmi")
outputPath = os.path.abspath("./school.dot")
! #pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
! pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateGraphvizUML)
--- 5,15 ----
import pymerase
if __name__ == "__main__":
! schema = os.path.abspath("./school.zargo")
outputPath = os.path.abspath("./school.dot")
! pymerase.run(schema, 'parseXMI', outputPath, 'CreateDBAPI')
!
|