You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(57) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(151) |
Mar
(131) |
Apr
(171) |
May
(125) |
Jun
(43) |
Jul
(26) |
Aug
(19) |
Sep
(10) |
Oct
|
Nov
(4) |
Dec
(28) |
| 2004 |
Jan
(134) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ki...@us...> - 2003-03-20 20:27:35
|
Update of /cvsroot/pymerase/Docs/running_pymerase
In directory sc8-pr-cvs1:/tmp/cvs-serv21479
Modified Files:
Run_Pymerase.tex
Removed Files:
PymeraseDocs-Running_Pymerase.rtf
Log Message:
obsolete
Index: Run_Pymerase.tex
===================================================================
RCS file: /cvsroot/pymerase/Docs/running_pymerase/Run_Pymerase.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Run_Pymerase.tex 7 Mar 2003 20:14:32 -0000 1.2
--- Run_Pymerase.tex 20 Mar 2003 20:27:28 -0000 1.3
***************
*** 88,92 ****
Note that iPymerase requires that ipython to be installed. Also, note that if you want to run ipython, all other options will be deselected.
! \includegraphics[width=\textwidth]{images/PymeraseGUI}
--- 88,92 ----
Note that iPymerase requires that ipython to be installed. Also, note that if you want to run ipython, all other options will be deselected.
! \includegraphics[width=\textwidth]{images/PymeraseGUI.eps}
--- PymeraseDocs-Running_Pymerase.rtf DELETED ---
|
|
From: <ki...@us...> - 2003-03-18 20:57:06
|
Update of /cvsroot/pymerase/pymerase/examples/xmiSchool In directory sc8-pr-cvs1:/tmp/cvs-serv18235 Modified Files: school.zargo Log Message: was just saved again to get the make file to work. .zargo files need to be saved twice or... 1st Save: untitled_.xmi 2nd Save: school_.xmi Index: school.zargo =================================================================== RCS file: /cvsroot/pymerase/pymerase/examples/xmiSchool/school.zargo,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvssPLyFW and /tmp/cvssxRf2I differ |
|
From: <ki...@us...> - 2003-03-18 20:49:46
|
Update of /cvsroot/pymerase/pymerase/examples/inheritance In directory sc8-pr-cvs1:/tmp/cvs-serv15426 Added Files: .cvsignore Log Message: usual --- NEW FILE: .cvsignore --- *.pyc *.class *.sql *.dot *.ps *.bak *.xmi |
|
From: <ki...@us...> - 2003-03-18 20:48:41
|
Update of /cvsroot/pymerase/pymerase/examples In directory sc8-pr-cvs1:/tmp/cvs-serv14945 Modified Files: README.examples Log Message: Updated for instructions on extracting .xmi files Index: README.examples =================================================================== RCS file: /cvsroot/pymerase/pymerase/examples/README.examples,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README.examples 15 Mar 2003 00:33:20 -0000 1.5 --- README.examples 18 Mar 2003 20:48:37 -0000 1.6 *************** *** 38,41 **** --- 38,47 ---- + * Extracting .xmi files from ArgoUML files (.zargo) + --------------------------------------------------- + Many examples use the .xmi file that's located in the .zargo file in + each example directory. You can either run make to extract the .xmi + files, or you can manually run the commands in the Makefile of each + example. |
|
From: <ki...@us...> - 2003-03-18 20:44:56
|
Update of /cvsroot/pymerase/pymerase/examples/dvd In directory sc8-pr-cvs1:/tmp/cvs-serv13379 Added Files: Makefile Log Message: extracts .xmi file --- NEW FILE: Makefile --- dvd.xmi: dvd.zargo unzip dvd.zargo dvd_.xmi mv dvd_.xmi dvd.xmi |
|
From: <ki...@us...> - 2003-03-18 20:39:58
|
Update of /cvsroot/pymerase/pymerase/examples/dvd In directory sc8-pr-cvs1:/tmp/cvs-serv11182 Removed Files: dvd_.xmi Log Message: can be extracted from .zargo file --- dvd_.xmi DELETED --- |
Update of /cvsroot/pymerase/pymerase/examples/dvd
In directory sc8-pr-cvs1:/tmp/cvs-serv10697
Modified Files:
createapi.py creategraphvizuml.py createhtml.py
createpytkdbwidgets.py createpytkwidgets.py createreport.py
createsql.py
Log Message:
updated to use Makefile extracted xmi file
Index: createapi.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createapi.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createapi.py 5 Feb 2003 23:06:44 -0000 1.2
--- createapi.py 18 Mar 2003 20:38:41 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./DvdAPI")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./DvdAPI")
Index: creategraphvizuml.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/creategraphvizuml.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** creategraphvizuml.py 5 Feb 2003 23:06:44 -0000 1.2
--- creategraphvizuml.py 18 Mar 2003 20:38:42 -0000 1.3
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./dvd.dot")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./dvd.dot")
Index: createhtml.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createhtml.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createhtml.py 5 Feb 2003 23:06:44 -0000 1.2
--- createhtml.py 18 Mar 2003 20:38:42 -0000 1.3
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./html")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./html")
Index: createpytkdbwidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createpytkdbwidgets.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createpytkdbwidgets.py 5 Feb 2003 23:06:44 -0000 1.2
--- createpytkdbwidgets.py 18 Mar 2003 20:38:43 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./widgets")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./widgets")
Index: createpytkwidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createpytkwidgets.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createpytkwidgets.py 5 Feb 2003 23:06:44 -0000 1.2
--- createpytkwidgets.py 18 Mar 2003 20:38:43 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./widgets")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./widgets")
Index: createreport.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createreport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createreport.py 5 Feb 2003 23:06:44 -0000 1.2
--- createreport.py 18 Mar 2003 20:38:44 -0000 1.3
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./report.txt")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./report.txt")
Index: createsql.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/dvd/createsql.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** createsql.py 27 Feb 2003 20:44:17 -0000 1.3
--- createsql.py 18 Mar 2003 20:38:46 -0000 1.4
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./dvd_.xmi")
outputPath = os.path.abspath("./dvd.sql")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./dvd.xmi")
outputPath = os.path.abspath("./dvd.sql")
|
|
From: <ki...@us...> - 2003-03-18 20:35:25
|
Update of /cvsroot/pymerase/pymerase/examples/varTypes In directory sc8-pr-cvs1:/tmp/cvs-serv9343 Modified Files: Makefile Log Message: oops Index: Makefile =================================================================== RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 18 Mar 2003 20:34:24 -0000 1.2 --- Makefile 18 Mar 2003 20:35:18 -0000 1.3 *************** *** 1,3 **** ! varTypes_.xmi: varTypes.zargo unzip varTypes.zargo varTypes_.xmi mv varTypes_.xmi varTypes.xmi --- 1,3 ---- ! varTypes.xmi: varTypes.zargo unzip varTypes.zargo varTypes_.xmi mv varTypes_.xmi varTypes.xmi |
Update of /cvsroot/pymerase/pymerase/examples/varTypes
In directory sc8-pr-cvs1:/tmp/cvs-serv8670
Modified Files:
Makefile createapi.py createpytkdbwidgets.py
createpytkwidgets.py createreport.py createsql.py
Log Message:
updating extraction to use make file.
Index: Makefile
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Makefile 18 Mar 2003 20:31:11 -0000 1.1
--- Makefile 18 Mar 2003 20:34:24 -0000 1.2
***************
*** 1,2 ****
varTypes_.xmi: varTypes.zargo
! unzip varTypes.zargo varTypes_.xmi
\ No newline at end of file
--- 1,3 ----
varTypes_.xmi: varTypes.zargo
! unzip varTypes.zargo varTypes_.xmi
! mv varTypes_.xmi varTypes.xmi
\ No newline at end of file
Index: createapi.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/createapi.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createapi.py 5 Feb 2003 23:08:26 -0000 1.2
--- createapi.py 18 Mar 2003 20:34:24 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes_.xmi")
outputPath = os.path.abspath("./VarTypesAPI")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes.xmi")
outputPath = os.path.abspath("./VarTypesAPI")
Index: createpytkdbwidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/createpytkdbwidgets.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createpytkdbwidgets.py 5 Feb 2003 23:08:26 -0000 1.2
--- createpytkdbwidgets.py 18 Mar 2003 20:34:24 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes_.xmi")
outputPath = os.path.abspath("./widgets")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes.xmi")
outputPath = os.path.abspath("./widgets")
Index: createpytkwidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/createpytkwidgets.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createpytkwidgets.py 5 Feb 2003 23:08:27 -0000 1.2
--- createpytkwidgets.py 18 Mar 2003 20:34:25 -0000 1.3
***************
*** 12,16 ****
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes_.xmi")
outputPath = os.path.abspath("./widgets")
--- 12,16 ----
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes.xmi")
outputPath = os.path.abspath("./widgets")
Index: createreport.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/createreport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** createreport.py 5 Feb 2003 23:08:27 -0000 1.2
--- createreport.py 18 Mar 2003 20:34:25 -0000 1.3
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes_.xmi")
outputPath = os.path.abspath("./report.txt")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes.xmi")
outputPath = os.path.abspath("./report.txt")
Index: createsql.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/varTypes/createsql.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** createsql.py 5 Feb 2003 23:08:27 -0000 1.3
--- createsql.py 18 Mar 2003 20:34:25 -0000 1.4
***************
*** 9,13 ****
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes_.xmi")
outputPath = os.path.abspath("./varTypes.sql")
--- 9,13 ----
if __name__ == "__main__":
! schema = os.path.abspath("./varTypes.xmi")
outputPath = os.path.abspath("./varTypes.sql")
|
|
From: <ki...@us...> - 2003-03-18 20:31:16
|
Update of /cvsroot/pymerase/pymerase/examples/varTypes In directory sc8-pr-cvs1:/tmp/cvs-serv7492 Added Files: Makefile Log Message: extract .xmi file --- NEW FILE: Makefile --- varTypes_.xmi: varTypes.zargo unzip varTypes.zargo varTypes_.xmi |
|
From: <ki...@us...> - 2003-03-18 20:30:55
|
Update of /cvsroot/pymerase/pymerase/examples/varTypes In directory sc8-pr-cvs1:/tmp/cvs-serv7225 Removed Files: varTypes_.xmi Log Message: can be extracted from .zargo file. --- varTypes_.xmi DELETED --- |
|
From: <ki...@us...> - 2003-03-18 20:28:46
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany2 In directory sc8-pr-cvs1:/tmp/cvs-serv6286/manyToMany2 Added Files: .cvsignore Log Message: usual --- NEW FILE: .cvsignore --- *.pyc *.class *.sql *.dot *.ps *.bak *.xmi |
|
From: <ki...@us...> - 2003-03-18 20:28:01
|
Update of /cvsroot/pymerase/pymerase/examples/selfRefObj In directory sc8-pr-cvs1:/tmp/cvs-serv5985 Added Files: .cvsignore Log Message: usual --- NEW FILE: .cvsignore --- *.pyc *.class *.sql *.dot *.ps *.bak *.xmi |
|
From: <ki...@us...> - 2003-03-18 20:27:19
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany In directory sc8-pr-cvs1:/tmp/cvs-serv5693 Added Files: .cvsignore Log Message: usual --- NEW FILE: .cvsignore --- *.pyc *.class *.sql *.dot *.ps *.bak *.xmi |
|
From: <ki...@us...> - 2003-03-18 20:25:58
|
Update of /cvsroot/pymerase/pymerase/examples/linkDB In directory sc8-pr-cvs1:/tmp/cvs-serv5326 Modified Files: .cvsignore Log Message: update Index: .cvsignore =================================================================== RCS file: /cvsroot/pymerase/pymerase/examples/linkDB/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 18 Mar 2003 20:25:15 -0000 1.1 --- .cvsignore 18 Mar 2003 20:25:54 -0000 1.2 *************** *** 4,6 **** *.dot *.ps ! *.bak \ No newline at end of file --- 4,7 ---- *.dot *.ps ! *.bak ! *.xmi \ No newline at end of file |
|
From: <ki...@us...> - 2003-03-18 20:25:22
|
Update of /cvsroot/pymerase/pymerase/examples/linkDB In directory sc8-pr-cvs1:/tmp/cvs-serv5078 Added Files: .cvsignore Log Message: standard --- NEW FILE: .cvsignore --- *.pyc *.class *.sql *.dot *.ps *.bak |
|
From: <ki...@us...> - 2003-03-18 20:23:00
|
Update of /cvsroot/pymerase/pymerase/examples/linkDB
In directory sc8-pr-cvs1:/tmp/cvs-serv3988
Added Files:
tutorial.html
Log Message:
example html file to run linker.py on.
--- NEW FILE: tutorial.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>linkDB Tutorial</title>
</head>
<body>
Pymerase<br>
Postgresql<br>
Python<br>
</body>
</html>
|
|
From: <de...@us...> - 2003-03-18 02:49:46
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/dbAPI
In directory sc8-pr-cvs1:/tmp/cvs-serv27429
Modified Files:
dbAPI.py
Log Message:
Added code to escape " in strings quoted strings going to postgresql
Index: dbAPI.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/dbAPI/dbAPI.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** dbAPI.py 18 Jan 2003 01:35:32 -0000 1.19
--- dbAPI.py 18 Mar 2003 02:49:42 -0000 1.20
***************
*** 55,58 ****
--- 55,63 ----
+ def sqlEscapeString(s):
+ """Given a string escape any double quote marks \"
+ """
+ return re.sub('"', '\"', s)
+
class Field:
"""Stores information about database fields.
***************
*** 163,167 ****
keyValue = self.thisObject.fields[self.thisObject.getPrimaryKeyName()].value
! sql %= (self.otherEndModule.getTableName(), keyName, keyValue)
print "__loadObjects{%s}: %s -> %s" % (m, sql, self.otherEndModule.getClassName())
warn("__loadObjects{%s}: %s" % (m, sql), DebugWarning)
--- 168,175 ----
keyValue = self.thisObject.fields[self.thisObject.getPrimaryKeyName()].value
! tableName = sqlEscapeString(self.otherEndModule.getTableName())
! keyName = sqlEscapeString(keyName)
! keyValue = sqlEscapeString(keyValue)
! sql %= (tableName, keyName, keyValue)
print "__loadObjects{%s}: %s -> %s" % (m, sql, self.otherEndModule.getClassName())
warn("__loadObjects{%s}: %s" % (m, sql), DebugWarning)
***************
*** 314,317 ****
--- 322,328 ----
# FIXME: how should I handle adding new objects to an object?
return None
+
+ from_table = sqlEscapeString(from_table)
+ key_name = sqlEscapeString(key_name)
sql = sql % (from_table, key_name, key_value)
***************
*** 449,453 ****
cursor = self.db_session.cursor()
select_sql = "SELECT * FROM \"%s\" WHERE \"%s\" = %s"
! select_sql %= (self.table_name, self.getPrimaryKeyName(), primary_key)
cursor.execute(select_sql)
# FIXME: what to do if this loads more than one record?
--- 460,467 ----
cursor = self.db_session.cursor()
select_sql = "SELECT * FROM \"%s\" WHERE \"%s\" = %s"
!
! table_name = sqlEscapeString(self.table_name)
! primary_key_name = sqlEscapeString(self.getPrimaryKeyName())
! select_sql %= (table_name, primary_key_name, primary_key)
cursor.execute(select_sql)
# FIXME: what to do if this loads more than one record?
***************
*** 499,503 ****
cursor = self.db_session.cursor()
# FIXME: this is a postgresql specific statement
! sql = "SELECT nextval('\"%s\"')" % (self.getPrimaryKeyName()+"_seq")
warn("getNextKey: %s" % (sql), DebugWarning)
cursor.execute(sql)
--- 513,517 ----
cursor = self.db_session.cursor()
# FIXME: this is a postgresql specific statement
! sql = "SELECT nextval('\"%s\"')" % (sqlEscapeString(self.getPrimaryKeyName()+"_seq"))
warn("getNextKey: %s" % (sql), DebugWarning)
cursor.execute(sql)
***************
*** 559,565 ****
update_pairs = string.join(update_pairs_list, ', ')
sql = "UPDATE \"%s\" SET %s WHERE \"%s\" = %s"
! sql %=(self.table_name,
update_pairs,
! self.getPrimaryKeyName(),
self.id())
else:
--- 573,579 ----
update_pairs = string.join(update_pairs_list, ', ')
sql = "UPDATE \"%s\" SET %s WHERE \"%s\" = %s"
! sql %=(sqlEscapeString(self.table_name),
update_pairs,
! sqlEscapeString(self.getPrimaryKeyName()),
self.id())
else:
***************
*** 567,571 ****
update_values = string.join(update_values_list, ", ")
sql = "INSERT INTO \"%s\" (%s) VALUES (%s);"
! sql %= (self.table_name, update_names, update_values)
#execute the query
--- 581,585 ----
update_values = string.join(update_values_list, ", ")
sql = "INSERT INTO \"%s\" (%s) VALUES (%s);"
! sql %= (sqlEscapeString(self.table_name), update_names, update_values)
#execute the query
***************
*** 648,652 ****
# FIXME: Should this actually even be an option?
delete_sql = "DELETE FROM \"%s\" WHERE \"%s\" = %s"
! delete_sql %= (self.table_name, self.getPrimaryKeyName(), self.id())
try:
--- 662,668 ----
# FIXME: Should this actually even be an option?
delete_sql = "DELETE FROM \"%s\" WHERE \"%s\" = %s"
! delete_sql %= (sqlEscapeString(self.table_name),
! sqlEscapeString(self.getPrimaryKeyName()),
! self.id())
try:
|
|
From: <ki...@us...> - 2003-03-17 23:31:45
|
Update of /cvsroot/pymerase/pymerase/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv11319
Added Files:
TestImportAll.py
Log Message:
Attempts to import pymerase, output module, input modules.
--- NEW FILE: TestImportAll.py ---
#!/usr/bin/env python
###########################################################################
# #
# C O P Y R I G H T N O T I C E #
# Copyright (c) 2003 by: #
# * California Institute of Technology #
# #
# All Rights Reserved. #
# #
# Permission is hereby granted, free of charge, to any person #
# obtaining a copy of this software and associated documentation files #
# (the "Software"), to deal in the Software without restriction, #
# including without limitation the rights to use, copy, modify, merge, #
# publish, distribute, sublicense, and/or sell copies of the Software, #
# and to permit persons to whom the Software is furnished to do so, #
# subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be #
# included in all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND #
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS #
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN #
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN #
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
# SOFTWARE. #
###########################################################################
#
# Authors: Brandon King
# Last Modified: $Date: 2003/03/17 23:31:41 $
#
print "PYMERASE LOAD TEST:"
try:
import pymerase
print "import pymerase success"
except:
print "import pymerase failed"
print ""
print "PYMERASE INPUT MODULE LOAD TEST:"
inputSuccessList = []
inputFailList = []
try:
from pymerase.input import parseGenexSchemaXML
inputSuccessList.append("parseGenexSchemaXML")
except:
inputFailList.append("parseGenexSchemaXML")
try:
from pymerase.input import parseXMI
inputSuccessList.append("parseXMI")
except:
inputFailList.append("parseXMI")
print "SUCCESS:"
if len(inputSuccessList) >= 1:
for item in inputSuccessList:
print " " + item
else:
print "NONE!!! =o("
print "FAILED:"
if len(inputFailList) >= 1:
for item in inputFailList:
print " " + item
else:
print "NONE! A+ Grade... For importing only, but does the code work?"
print ""
print "PYMERASE OUTPUT MODULE LOAD TEST:"
outputSuccessList = []
outputFailList = []
try:
from pymerase.output import CreateDBAPI
outputSuccessList.append("CreateDBAPI")
except:
outputFailList.append("CreateDBAPI")
try:
from pymerase.output import CreateDBEditor
outputSuccessList.append("CreateDBEditor")
except:
outputFailList.append("CreateDBEditor")
try:
from pymerase.output import CreateGraphvizUML
outputSuccessList.append("CreateGraphvizUML")
except:
outputFailList.append("CreateGraphvizUML")
try:
from pymerase.output import CreateHtmlForms
outputSuccessList.append("CreateHtmlForms")
except:
outputFailList.append("CreateHtmlForms")
try:
from pymerase.output import CreatePyTkDBWidgets
outputSuccessList.append("CreatePyTkDBWidgets")
except:
outputFailList.append("CreatePyTkDBWidgets")
try:
from pymerase.output import CreatePyTkWidgets
outputSuccessList.append("CreatePyTkWidgets")
except:
outputFailList.append("CreatePyTkWidgets")
try:
from pymerase.output import CreatePythonAPI
outputSuccessList.append("CreatePythonAPI")
except:
outputFailList.append("CreatePythonAPI")
try:
from pymerase.output import CreateReport
outputSuccessList.append("CreateReport")
except:
outputFailList.append("CreateReport")
try:
from pymerase.output import CreateSQL
outputSuccessList.append("CreateSQL")
except:
outputFailList.append("CreateSQL")
try:
from pymerase.output import CreateTableXML
outputSuccessList.append("CreateTableXML")
except:
outputFailList.append("CreateTableXML")
try:
from pymerase.output import iPymerase
outputSuccessList.append("iPymerase")
except:
outputFailList.append("iPymerase")
print "SUCCESS:"
if len(outputSuccessList) >= 1:
for item in outputSuccessList:
print " " + item
else:
print "NONE!!! =o("
print "FAILED:"
if len(outputFailList) >= 1:
for item in outputFailList:
print " " + item
else:
print "NONE! A+ Grade... For importing only, but does the code work?"
|
|
From: <ki...@us...> - 2003-03-17 23:29:53
|
Update of /cvsroot/pymerase/pymerase/tests In directory sc8-pr-cvs1:/tmp/cvs-serv10669/tests Log Message: Directory /cvsroot/pymerase/pymerase/tests added to the repository |
|
From: <de...@us...> - 2003-03-15 01:34:30
|
Update of /cvsroot/pymerase/pymerase/pymerase/input
In directory sc8-pr-cvs1:/tmp/cvs-serv786
Modified Files:
parseXMI.py
Log Message:
removed a degenerated implementation of getPrimaryKeyName. The version
in classMetaInfo works much better.
Index: parseXMI.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/input/parseXMI.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** parseXMI.py 14 Mar 2003 23:03:30 -0000 1.14
--- parseXMI.py 15 Mar 2003 01:34:26 -0000 1.15
***************
*** 202,218 ****
- def getPrimaryKeyName(self, translatorName):
- """return primary key name
- """
- if not self.primaryKeyConstructed:
- self.setPrimaryKeyName()
-
- if self.primaryKeyName is not None:
- mangler = self.config.getNameMangler(translatorName)
- return mangler.mangle(self.primaryKeyName)
- else:
- # we inherit from some other class (which has the primary key)
- return None
-
## def appendIndices(self, pymeraseConfig, attributes):
## """Append list of indices to
--- 202,205 ----
|
|
From: <ki...@us...> - 2003-03-15 00:33:22
|
Update of /cvsroot/pymerase/pymerase/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv13802
Modified Files:
README.examples
Log Message:
updated for new examples, needs work.
Index: README.examples
===================================================================
RCS file: /cvsroot/pymerase/pymerase/examples/README.examples,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** README.examples 5 Feb 2003 23:09:52 -0000 1.4
--- README.examples 15 Mar 2003 00:33:20 -0000 1.5
***************
*** 1,4 ****
--- 1,9 ----
* Example descriptions
----------------------
+ linkDB/ - Any example which includes command line program for replacing
+ words in an html file with a link stored in the database.
+ It's good example to get started with as it has a fairly
+ simple design.
+
dvd/ - Super simple database with two tables and one link between them.
You can also catalog your home dvd collection! =o)
***************
*** 22,27 ****
for data type testing for output modules.
! ReactionDB/ - A more complex example implementing a biological reactions
! database
--- 27,41 ----
for data type testing for output modules.
! inheritance/ - Designed to test out the inheritance in pymerase
!
! selfRefObj/ - Designed to test out self referential objects in pymerase
!
! manyToMany/ - Designed to test out many-to-many links without linking
! table.
!
! manyToMany2/ - Designed to test out many-to-many links using a user
! added linking table.
!
!
***************
*** 46,50 ****
----------------------
! In each of the example subdirectories there is up to four driver
programs for running pymerase.
--- 60,64 ----
----------------------
! In each of the example subdirectories there are many driver
programs for running pymerase.
|
|
From: <ki...@us...> - 2003-03-15 00:17:23
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany2
In directory sc8-pr-cvs1:/tmp/cvs-serv7851
Added Files:
createsql.py
Log Message:
sql
--- NEW FILE: createsql.py ---
#!/usr/bin/env python
import sys
import os
import pymerase
import pymerase.input.parseXMI
import pymerase.output.CreateSQL
if __name__ == "__main__":
schema = os.path.abspath("./manyToMany.xmi")
outputPath = os.path.abspath("./manyToMany.sql")
pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateSQL)
|
|
From: <ki...@us...> - 2003-03-15 00:17:07
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany2
In directory sc8-pr-cvs1:/tmp/cvs-serv7770
Added Files:
createreport.py
Log Message:
get report
--- NEW FILE: createreport.py ---
#!/usr/bin/env python
import sys
import os
import pymerase
import pymerase.input.parseXMI
import pymerase.output.CreateReport
if __name__ == "__main__":
schema = os.path.abspath("./manyToMany.xmi")
outputPath = os.path.abspath("./report.txt")
pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateReport)
|
|
From: <ki...@us...> - 2003-03-15 00:16:52
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany2
In directory sc8-pr-cvs1:/tmp/cvs-serv7650
Added Files:
createpytkwidgets.py
Log Message:
more widgets
--- NEW FILE: createpytkwidgets.py ---
#!/usr/bin/env python
import sys
import os
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.CreatePyTkWidgets
if __name__ == "__main__":
schema = os.path.abspath("./manyToMany.xmi")
outputPath = os.path.abspath("./widgets")
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreatePyTkWidgets)
|