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-06-14 01:38:13
|
Update of /cvsroot/pymerase/pymerase/pymweb/www In directory sc8-pr-cvs1:/tmp/cvs-serv28808 Modified Files: pymweb.html Log Message: added support for CreateCppAPI output module Index: pymweb.html =================================================================== RCS file: /cvsroot/pymerase/pymerase/pymweb/www/pymweb.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pymweb.html 18 Apr 2003 19:20:39 -0000 1.8 --- pymweb.html 14 Jun 2003 01:38:10 -0000 1.9 *************** *** 26,29 **** --- 26,30 ---- <tr> <td><div align="right">Output Module:</div></td><td><select name="output" size="1"> + <option value="CreateCppAPI" label="CreateCppAPI">CreateCppAPI</option> <option value="CreateDBAPI" label="CreateDBAPI">CreateDBAPI</option> <option value="CreateGraphvizUML" label="CreateGraphvizUML">CreateGraphvizUML</option> |
|
From: <ki...@us...> - 2003-06-14 01:35:15
|
Update of /cvsroot/pymerase/pymerase/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv28508
Modified Files:
pymerasegui.py
Log Message:
added support for CreateCppAPI output module
Index: pymerasegui.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/bin/pymerasegui.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** pymerasegui.py 19 May 2003 20:37:28 -0000 1.11
--- pymerasegui.py 14 Jun 2003 01:35:13 -0000 1.12
***************
*** 166,169 ****
--- 166,179 ----
self.outputModLabel.grid(row=0, column=2)
+ #CreateCppAPI
+ self.intCreateCppAPI = IntVar()
+ self.CreateCppAPI = Checkbutton(frame,
+ text="CreateCppAPI",
+ variable=self.intCreateCppAPI,
+ command=self.outputModCheck1)
+ self.CreateCppAPI.grid(row=1, column=2, sticky=W)
+ self.outputCppAPIEntry = Entry(frame)
+ self.outputCppAPIEntry.grid(row=1, column=3)
+
#CreateDBAPI
self.intCreateDBAPI = IntVar()
***************
*** 172,178 ****
variable=self.intCreateDBAPI,
command=self.outputModCheck1)
! self.CreateDBAPI.grid(row=1, column=2, sticky=W)
self.outputDBAPIEntry = Entry(frame)
! self.outputDBAPIEntry.grid(row=1, column=3)
#CreateDBEditor
--- 182,188 ----
variable=self.intCreateDBAPI,
command=self.outputModCheck1)
! self.CreateDBAPI.grid(row=2, column=2, sticky=W)
self.outputDBAPIEntry = Entry(frame)
! self.outputDBAPIEntry.grid(row=2, column=3)
#CreateDBEditor
***************
*** 202,208 ****
variable=self.intCreatePythonAPI,
command=self.outputModCheck1)
! self.CreatePythonAPI.grid(row=2, column=2, sticky=W)
self.outputPythonAPIEntry = Entry(frame)
! self.outputPythonAPIEntry.grid(row=2, column=3)
#CreateSQL
--- 212,218 ----
variable=self.intCreatePythonAPI,
command=self.outputModCheck1)
! self.CreatePythonAPI.grid(row=3, column=2, sticky=W)
self.outputPythonAPIEntry = Entry(frame)
! self.outputPythonAPIEntry.grid(row=3, column=3)
#CreateSQL
***************
*** 212,218 ****
variable=self.intCreateSQL,
command=self.outputModCheck1)
! self.CreateSQL.grid(row=3, column=2, sticky=W)
self.outputSQLEntry = Entry(frame)
! self.outputSQLEntry.grid(row=3, column=3)
#CreateGraphvizUML
--- 222,228 ----
variable=self.intCreateSQL,
command=self.outputModCheck1)
! self.CreateSQL.grid(row=4, column=2, sticky=W)
self.outputSQLEntry = Entry(frame)
! self.outputSQLEntry.grid(row=4, column=3)
#CreateGraphvizUML
***************
*** 222,228 ****
variable=self.intCreateGraphvizUML,
command=self.outputModCheck1)
! self.CreateGraphvizUML.grid(row=4, column=2, sticky=W)
self.outputGraphvizUMLEntry = Entry(frame)
! self.outputGraphvizUMLEntry.grid(row=4, column=3)
#CreatePyTkWidgets
--- 232,238 ----
variable=self.intCreateGraphvizUML,
command=self.outputModCheck1)
! self.CreateGraphvizUML.grid(row=5, column=2, sticky=W)
self.outputGraphvizUMLEntry = Entry(frame)
! self.outputGraphvizUMLEntry.grid(row=5, column=3)
#CreatePyTkWidgets
***************
*** 232,238 ****
variable=self.intCreatePyTkWidgets,
command=self.outputModCheck1)
! self.CreatePyTkWidgets.grid(row=5, column=2, sticky=W)
self.outputPyTkWidgetsEntry = Entry(frame)
! self.outputPyTkWidgetsEntry.grid(row=5, column=3)
#CreatePyTkDBWidgets
--- 242,248 ----
variable=self.intCreatePyTkWidgets,
command=self.outputModCheck1)
! self.CreatePyTkWidgets.grid(row=6, column=2, sticky=W)
self.outputPyTkWidgetsEntry = Entry(frame)
! self.outputPyTkWidgetsEntry.grid(row=6, column=3)
#CreatePyTkDBWidgets
***************
*** 242,248 ****
variable=self.intCreatePyTkDBWidgets,
command=self.outputModCheck1)
! self.CreatePyTkDBWidgets.grid(row=6, column=2, sticky=W)
self.outputPyTkDBWidgetsEntry = Entry(frame)
! self.outputPyTkDBWidgetsEntry.grid(row=6, column=3)
#CreateReport
--- 252,258 ----
variable=self.intCreatePyTkDBWidgets,
command=self.outputModCheck1)
! self.CreatePyTkDBWidgets.grid(row=7, column=2, sticky=W)
self.outputPyTkDBWidgetsEntry = Entry(frame)
! self.outputPyTkDBWidgetsEntry.grid(row=7, column=3)
#CreateReport
***************
*** 252,258 ****
variable=self.intCreateReport,
command=self.outputModCheck1)
! self.CreateReport.grid(row=7, column=2, sticky=W)
self.outputReportEntry = Entry(frame)
! self.outputReportEntry.grid(row=7, column=3)
#CreateTableXML
--- 262,268 ----
variable=self.intCreateReport,
command=self.outputModCheck1)
! self.CreateReport.grid(row=8, column=2, sticky=W)
self.outputReportEntry = Entry(frame)
! self.outputReportEntry.grid(row=8, column=3)
#CreateTableXML
***************
*** 262,268 ****
variable=self.intCreateTableXML,
command=self.outputModCheck1)
! self.CreateTableXML.grid(row=8, column=2, sticky=W)
self.outputTableXMLEntry = Entry(frame)
! self.outputTableXMLEntry.grid(row=8, column=3)
#iPymerase
--- 272,278 ----
variable=self.intCreateTableXML,
command=self.outputModCheck1)
! self.CreateTableXML.grid(row=9, column=2, sticky=W)
self.outputTableXMLEntry = Entry(frame)
! self.outputTableXMLEntry.grid(row=9, column=3)
#iPymerase
***************
*** 273,279 ****
justify=LEFT,
command=self.outputModCheck2)
! self.iPymerase.grid(row=9, column=2, sticky=W)
self.outputiPymeraseEntry = Entry(frame)
! self.outputiPymeraseEntry.grid(row=9, column=3)
#Run load settings in initialize mode
--- 283,289 ----
justify=LEFT,
command=self.outputModCheck2)
! self.iPymerase.grid(row=10, column=2, sticky=W)
self.outputiPymeraseEntry = Entry(frame)
! self.outputiPymeraseEntry.grid(row=10, column=3)
#Run load settings in initialize mode
***************
*** 286,289 ****
--- 296,300 ----
if self.intCreateDBAPI.get() == 1 or \
+ self.intCreateCppAPI.get() == 1 or \
self.intCreateSQL.get() == 1 or \
self.intCreateGraphvizUML.get() == 1 or \
***************
*** 300,303 ****
--- 311,315 ----
#reset other buttons
self.intCreateDBAPI.set(0)
+ self.intCreateCppAPI.set(0)
#self.intCreateDBEditor.set(0)
#self.intCreateHtmlForms.set(0)
***************
*** 344,347 ****
--- 356,360 ----
if self.intiPymerase.get() == 0 and \
self.intCreateDBAPI.get() == 0 and \
+ self.intCreateCppAPI.get() == 0 and \
self.intCreatePythonAPI.get() == 0 and \
self.intCreateReport.get() == 0 and \
***************
*** 364,367 ****
--- 377,385 ----
ABORT = 1
+ if self.intCreateCppAPI.get() == 1 and \
+ len(self.outputCppAPIEntry.get()) == 0:
+ print 'Must enter an output path for CreateCppAPI.'
+ ABORT = 1
+
#if self.intCreateDBEditor.get() == 1 and \
# len(self.outputDBEditorEntry.get()) == 0:
***************
*** 430,433 ****
--- 448,456 ----
self.outputDBAPIEntry.get()) )
+ if self.intCreateCppAPI.get() == 1 and \
+ len(self.outputCppAPIEntry.get()) > 0:
+ outputPairList.append( ('CreateCppAPI',
+ self.outputCppAPIEntry.get()) )
+
#if self.intCreateDBEditor.get() == 1 and \
# len(self.outputDBEditorEntry.get()) > 0:
***************
*** 506,509 ****
--- 529,533 ----
#Output Modules
settings['CreateDBAPI'] = self.intCreateDBAPI.get()
+ settings['CreateCppAPI'] = self.intCreateCppAPI.get()
#settings['CreateDBEditor'] = self.intCreateDBEditor.get()
#settings['CreateHtmlForms'] = self.intCreateHtmlForms.get()
***************
*** 519,522 ****
--- 543,547 ----
#Output Destinations
settings['outputDBAPI'] = self.outputDBAPIEntry.get()
+ settings['outputCppAPI'] = self.outputCppAPIEntry.get()
#settings['outputDBEditor'] = self.outputDBEditorEntry.get()
#settings['outputHtmlForms'] = self.outputHtmlFormsEntry.get()
***************
*** 611,614 ****
--- 636,640 ----
#Output Modules
self.intCreateDBAPI.set(settings['CreateDBAPI'])
+ self.intCreateCppAPI.set(settings['CreateCppAPI'])
#self.intCreateDBEditor.set(settings['CreateDBEditor'])
#self.intCreateHtmlForms.set(settings['CreateHtmlForms'])
***************
*** 625,628 ****
--- 651,656 ----
self.outputDBAPIEntry.delete(0, END)
self.outputDBAPIEntry.insert(0, settings['outputDBAPI'])
+ self.outputCppAPIEntry.delete(0, END)
+ self.outputCppAPIEntry.insert(0, settings['outputCppAPI'])
#self.outputDBEditorEntry.delete(0, END)
#self.outputDBEditorEntry.insert(0, settings['outputDBEditor'])
|
|
From: <ki...@us...> - 2003-06-14 01:24:13
|
Update of /cvsroot/pymerase/pymerase
In directory sc8-pr-cvs1:/tmp/cvs-serv27188
Modified Files:
setup.py
Log Message:
added pymerase.output.CppAPI package to the list of packages to install
Index: setup.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/setup.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** setup.py 10 May 2003 00:01:45 -0000 1.10
--- setup.py 14 Jun 2003 01:24:10 -0000 1.11
***************
*** 56,60 ****
"pymerase.output.PyTkWidgets",
"pymerase.output.PyTkWidgets.lib",
! "pymerase.output.PythonAPI"]
--- 56,61 ----
"pymerase.output.PyTkWidgets",
"pymerase.output.PyTkWidgets.lib",
! "pymerase.output.PythonAPI",
! "pymerase.output.CppAPI"]
|
|
From: <ki...@us...> - 2003-06-14 01:23:25
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/CppAPI
In directory sc8-pr-cvs1:/tmp/cvs-serv27066
Added Files:
Templates.py
Log Message:
First partially working templates... Needs work.
--- NEW FILE: Templates.py ---
###########################################################################
# #
# 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/06/14 01:23:22 $
#
class Template:
def __init__(self):
pass
def getMakeFileTemplate(self):
template = """all: swig-python cpp-api
swig-python:
%SWIG_PYTHON_MAKE%
cpp-api:
%CPP_MAKE%
"""
return template
def getCppClassHeaderTemplate(self):
template = """/////////////////////////////////////////////////////////////////////////////
// //
// 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. //
/////////////////////////////////////////////////////////////////////////////
//
// Header: %CLASS_NAME%
// Generated By: Pymerase (CreateCppAPI Output Module)
// URL: http://pymerase.sourceforge.net
// Last Modified: $Date: 2003/06/14 01:23:22 $
//
#ifndef %CLASS_NAME%_H
#define %CLASS_NAME%_H
class %CLASS_NAME% {
public:
%PUBLIC%
private:
%PRIVATE%
};
#endif
"""
return template
def getCppClassTemplate(self):
template = """/////////////////////////////////////////////////////////////////////////////
// //
// 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. //
/////////////////////////////////////////////////////////////////////////////
//
// Classs: %CLASS_NAME%
// Generated By: Pymerase (CreateCppAPI Output Module)
// URL: http://pymerase.sourceforge.net
// Last Modified: $Date: 2003/06/14 01:23:22 $
//
#include "%CLASS_NAME%.h"
%CLASS_DEF%
"""
return template
|
|
From: <ki...@us...> - 2003-06-14 01:22:27
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/CppAPI In directory sc8-pr-cvs1:/tmp/cvs-serv27004 Added Files: __init__.py Log Message: CppAPI package --- NEW FILE: __init__.py --- ########################################################################### # # # C O P Y R I G H T N O T I C E # # Copyright (c) 2002 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/06/14 01:22:23 $ # |
|
From: <ki...@us...> - 2003-06-14 01:21:45
|
Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv26872
Added Files:
CreateCppAPI.py
Log Message:
First attempt at C++ API generation. Currently only generates partial header file. Needs a LOT of work!
--- NEW FILE: CreateCppAPI.py ---
###########################################################################
# #
# C O P Y R I G H T N O T I C E #
# Copyright (c) 2002 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/06/14 01:21:43 $
#
"""Creates a report of each Class/Table"""
#Imported System Packages.
import os
import string
import re
from pymerase.output.CppAPI.Templates import Template
from pymerase.ClassMembers import getAllAttributes
from pymerase.ClassMembers import getAllAssociationEnds
from pymerase.util.Warnings import DebugWarning
from pymerase.util.Warnings import InfoWarning
import warnings
from warnings import warn
############################
# Globals
TRANSLATOR_NAME='CreateCppAPI'
def saveFile(dest, fileName, cppFile):
if not os.path.exists(dest):
os.mkdir(dest)
if os.path.exists(dest) and os.path.isdir(dest):
filePath = os.path.join(dest, fileName)
f = open(filePath, 'w')
f.write(cppFile)
f.close()
else:
warn("Error %s is not a directory" % (dest), RuntimeWarning)
############################
# Writer components
def write(destination, classList):
"""
Create Report in destination dirctory.
"""
#Iterate through the tables/classes and process the data
for cls in classList:
templateUtil = Template()
className = cls.getName(TRANSLATOR_NAME)
headerFileName = className + '.h'
cppFileName = className + '.cpp'
clsHeader = templateUtil.getCppClassHeaderTemplate()
clsHeader = re.sub("%CLASS_NAME%", className, clsHeader)
for attribute in getAllAttributes(classList, cls, TRANSLATOR_NAME):
type = attribute.getType().getSQLType()
name = attribute.getName(TRANSLATOR_NAME)
setterName = attribute.getSetterName(TRANSLATOR_NAME)
getterName = attribute.getGetterName(TRANSLATOR_NAME)
varCode = []
varCode.append("%s %s;" % ('int', name))
varCode.append(" %PRIVATE%")
varCode = string.join(varCode, '\n')
clsHeader = re.sub("%PRIVATE%", varCode, clsHeader)
setterCode = []
setterCode.append("%s %s(%s);" % ('int', setterName, 'int %s' % (name)))
setterCode.append(" %PUBLIC%")
setterCode = string.join(setterCode, '\n')
clsHeader = re.sub("%PUBLIC%", setterCode, clsHeader)
getterCode = []
getterCode.append("%s %s();" % ('int', getterName))
getterCode.append(" %PUBLIC%")
getterCode = string.join(getterCode, '\n')
clsHeader = re.sub("%PUBLIC%", getterCode, clsHeader)
for assocEnd in getAllAssociationEnds(classList, cls, TRANSLATOR_NAME):
name = assocEnd.getName(TRANSLATOR_NAME)
setterName = assocEnd.getSetterName(TRANSLATOR_NAME)
getterName = assocEnd.getGetterName(TRANSLATOR_NAME)
oppClassName = assocEnd.getOppositeEnd().getClassName(TRANSLATOR_NAME)
setterCode = []
setterCode.append("%s %s(%s);" % ('int', setterName, 'int %s' % (name)))
setterCode.append(" %PUBLIC%")
setterCode = string.join(setterCode, '\n')
clsHeader = re.sub("%PUBLIC%", setterCode, clsHeader)
getterCode = []
getterCode.append("%s %s();" % (oppClassName, getterName))
getterCode.append(" %PUBLIC%")
getterCode = string.join(getterCode, '\n')
clsHeader = re.sub("%PUBLIC%", getterCode, clsHeader)
clsHeader = re.sub("%PUBLIC%", "", clsHeader)
clsHeader = re.sub("%PRIVATE%", "", clsHeader)
saveFile(destination, headerFileName, clsHeader)
#Get name of class which this class inherits from
#baseClassNames = cls.getBaseClassNames(TRANSLATOR_NAME)
#if len(baseClassNames) >= 1:
# for baseClass in baseClassNames:
# cppCode.append(" Inherits From: %s" % (baseClass))
#Process each attribute in a given table (class)
#for attribute in getAllAttributes(classList, cls, TRANSLATOR_NAME):
#
# type = attribute.getType().getSQLType()
# cppCode.append(" ATTRIBUTE:")
# cppCode.append(" Name = %s" % \
# (attribute.getName(TRANSLATOR_NAME)))
# cppCode.append(" Type = %s" % \
# (type))
# cppCode.append(" GetterName = %s" \
# % (attribute.getGetterName(TRANSLATOR_NAME)))
# cppCode.append(" SetterName = %s" % \
# (attribute.getSetterName(TRANSLATOR_NAME)))
# cppCode.append(" AppenderName = %s" % \
# (attribute.getAppenderName(TRANSLATOR_NAME)))
# cppCode.append(" isRequired = %s" % (attribute.isRequired()))
# cppCode.append(" isUnique = %s" % (attribute.isUnique()))
# cppCode.append(" isIndexed = %s" % (attribute.isIndexed()))
# cppCode.append(" isPrimaryKey = %s" % (attribute.isPrimaryKey()))
#
#for assocEnd in getAllAssociationEnds(classList, cls, TRANSLATOR_NAME):
# cppCode.append(" ASSOC END:")
# cppCode.append(" Name = %s" % (assocEnd.getName(TRANSLATOR_NAME)))
# cppCode.append(" AttribName = %s" % \
# (assocEnd.getAttributeName(TRANSLATOR_NAME)))
# cppCode.append(" GetterName = %s" % \
# (assocEnd.getGetterName(TRANSLATOR_NAME)))
# cppCode.append(" SetterName = %s" % \
# (assocEnd.getSetterName(TRANSLATOR_NAME)))
# cppCode.append(" AppenderName = %s" % \
# (assocEnd.getAppenderName(TRANSLATOR_NAME)))
# cppCode.append(" Multiplicity = %s" % (assocEnd.getMultiplicity()))
# cppCode.append(" isNavigable = %s" % (assocEnd.isNavigable()))
# cppCode.append(" OppositeEnd = %s.%s" % \
# (assocEnd.getOppositeEnd().getClassName(TRANSLATOR_NAME),
# assocEnd.getOppositeEnd().getAttributeName(TRANSLATOR_NAME)))
#
#
#cppCode.append("")
#cppCode = string.join(cppCode, '\n')
#f = open(destination, 'w')
#f.write(cppCode)
#f.close()
#warn("Report Generation Complete... Good Bye.", InfoWarning)
|
|
From: <ki...@us...> - 2003-06-14 01:20:53
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/CppAPI In directory sc8-pr-cvs1:/tmp/cvs-serv26821/CppAPI Log Message: Directory /cvsroot/pymerase/pymerase/pymerase/output/CppAPI added to the repository |
|
From: <ki...@us...> - 2003-06-05 23:33:36
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi
In directory sc8-pr-cvs1:/tmp/cvs-serv11587
Added Files:
pubmed-test.py
Log Message:
example command-line program which allows you to do a search and saves
the results to a local postgresql database.
--- NEW FILE: pubmed-test.py ---
#!/usr/bin/env python2.2
###########################################################################
# #
# 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/06/05 23:33:32 $
#
import os
import sys
import getopt
import time
from PubMedAPI import DBSession
from Bio import PubMed
from Bio import Medline
rev = "$Revision: 1.1 $"
rev = rev.replace('$Revision: ', '')
rev = rev.replace(' $', '')
VERSION = 'v0.%s' % (rev)
def printUseage():
useage = """
Welcome to PubMed-Test!
Useage:
pubmed-test.py -s [search]
pubmed-test.py --search=[search]
Options:
-s, --search=[foo] Pubmed Search you would like to try.
-v, --version Displays version number
-h, --help Displays this help page
"""
print useage
def parseCommandLine():
"""
Processes Command Line Arguments
return (source, inputModule, destination, outputModule)
"""
try:
opts, args = getopt.getopt(sys.argv[1:], "s:hv",
["search=",
"version",
"help"])
except getopt.GetoptError:
print "-------------------------------"
print "- Invalid Command Line Option -"
print "-------------------------------"
printUseage()
sys.exit(2)
if len(sys.argv) <= 1:
printUseage()
sys.exit(2)
search = None
for arg, val in opts:
if arg in ('-h', '--help'):
printUseage()
sys.exit()
if arg in ('-v', '--version'):
print ''
print 'pubmed-test.py %s' % (VERSION)
print ''
sys.exit()
if arg in ('-s', '--search'):
print "SEARCH: %s" % (val)
search = val
return search
if __name__ == '__main__':
search = parseCommandLine()
print 'Searching Now... please wait. %s' % (time.ctime())
pubmedList = PubMed.search_for(search)
print 'Search Complete! %s' % (time.ctime())
print pubmedList
print ''
print 'Preparing Local Database %s' % (time.ctime())
dbs = DBSession(dsn='localhost', database='pubmed', user='king')
print 'Local Database Connection Complete %s' % (time.ctime())
print ''
print 'Creating GroupLabel(%s) %s' % (search, time.ctime())
grpList = dbs.GroupList()
grpList.setName(search)
print 'Created GroupLabel(%s) %s' % (search, time.ctime())
print ''
print 'Retrieving Records %s' % (time.ctime())
rec_parser = Medline.RecordParser()
medline_dict = PubMed.Dictionary(parser=rec_parser)
counter = 0
for rec in pubmedList:
myRec = dbs.PubMedRecord()
pmRec = medline_dict[rec]
print pmRec.title
myRec.setTitle(pmRec.title)
myRec.setAbstract(pmRec.abstract)
myRec.setPubmedAccess(pmRec.pubmed_id)
grpList.appendPubMedRec(myRec)
myRec.commit()
counter += 1
print 'Retrieved %s Records. %s' % (counter, time.ctime())
print 'Saving Search to Local Database. %s' % (time.ctime())
grpList.commit()
print 'Records saved to Local Database. %s' % (time.ctime())
print 'DONE'
|
|
From: <ki...@us...> - 2003-06-05 23:30:58
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi In directory sc8-pr-cvs1:/tmp/cvs-serv10864 Added Files: README Log Message: Description of example --- NEW FILE: README --- NCBI Example Requires: BioPython pubmed-test.py allows you to search PubMed and then saves them in a local postgresql database. |
|
From: <ki...@us...> - 2003-06-05 23:30:31
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi
In directory sc8-pr-cvs1:/tmp/cvs-serv10781
Added Files:
createsql-pubmed.py
Log Message:
create sql for pubmed example
--- NEW FILE: createsql-pubmed.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("./pubmed.xmi")
outputPath = os.path.abspath("./pubmed.sql")
pymerase.run(schema, "parseXMI", outputPath, "CreateSQL")
#pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateSQL)
|
|
From: <ki...@us...> - 2003-06-05 23:30:15
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi
In directory sc8-pr-cvs1:/tmp/cvs-serv10587
Added Files:
createdbapi-pubmed.py
Log Message:
createdbapi for pubmed example
--- NEW FILE: createdbapi-pubmed.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("./pubmed.xmi")
outputPath = os.path.abspath("./PubMedAPI")
pymerase.run(schema, "parseXMI", outputPath, "CreateDBAPI")
#pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateSQL)
|
|
From: <ki...@us...> - 2003-06-05 23:29:44
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi In directory sc8-pr-cvs1:/tmp/cvs-serv10435 Added Files: pubmed.zargo Log Message: Schema to hold PubMed searches --- NEW FILE: pubmed.zargo --- (This appears to be a binary file; contents omitted.) |
|
From: <ki...@us...> - 2003-06-05 23:28:48
|
Update of /cvsroot/pymerase/pymerase/examples/ncbi In directory sc8-pr-cvs1:/tmp/cvs-serv10109/ncbi Log Message: Directory /cvsroot/pymerase/pymerase/examples/ncbi added to the repository |
|
From: <de...@us...> - 2003-06-03 21:52:47
|
Update of /cvsroot/pymerase/pymerase/debian In directory sc8-pr-cvs1:/tmp/cvs-serv28006 Modified Files: rules Log Message: removed some commented out stuff Index: rules =================================================================== RCS file: /cvsroot/pymerase/pymerase/debian/rules,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** rules 9 May 2003 19:11:50 -0000 1.2 --- rules 3 Jun 2003 21:52:44 -0000 1.3 *************** *** 47,53 **** # Add here commands to install the package into debian/pymerase. python setup.py install --root=`pwd`/debian/tmp - # python setup.py install_lib --install-dir=`pwd`/debian/python2.2-pymerase - # python setup.py install_scripts --install-dir=`pwd`/debian/python2.2-pymerase - # --install-scripts=/usr/bin --- 47,50 ---- |
|
From: <ki...@us...> - 2003-05-30 03:30:10
|
Update of /cvsroot/pymerase/htdocs/docs/pymweb
In directory sc8-pr-cvs1:/tmp/cvs-serv6677
Modified Files:
pymweb-manual.html
Log Message:
updated formatting
Index: pymweb-manual.html
===================================================================
RCS file: /cvsroot/pymerase/htdocs/docs/pymweb/pymweb-manual.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pymweb-manual.html 30 May 2003 03:04:29 -0000 1.3
--- pymweb-manual.html 30 May 2003 03:30:06 -0000 1.4
***************
*** 100,104 ****
<div class="p"><!----></div>
<a name="tth_fIg1">
! </a> <img src="images/pymweb-front-end.jpg">
<center>Figure 1: <font color="#0000FF">Pymweb - Pymerase Web Front End</font></center>
--- 100,104 ----
<div class="p"><!----></div>
<a name="tth_fIg1">
! </a> <div align="center"><img src="images/pymweb-front-end.jpg"></div>
<center>Figure 1: <font color="#0000FF">Pymweb - Pymerase Web Front End</font></center>
***************
*** 335,339 ****
<div class="p"><!----></div>
<a name="tth_fIg2">
! </a> <img src="images/pymweb-output.jpg">
<center>Figure 2: <font color="#0000FF">Pymweb - Succesful Output</font></center>
--- 335,339 ----
<div class="p"><!----></div>
<a name="tth_fIg2">
! </a> <div align="center"><img src="images/pymweb-output.jpg"></div>
<center>Figure 2: <font color="#0000FF">Pymweb - Succesful Output</font></center>
|
|
From: <ki...@us...> - 2003-05-30 03:28:03
|
Update of /cvsroot/pymerase/htdocs/docs In directory sc8-pr-cvs1:/tmp/cvs-serv4770 Modified Files: index.shtml Log Message: updated links to pymweb files Index: index.shtml =================================================================== RCS file: /cvsroot/pymerase/htdocs/docs/index.shtml,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** index.shtml 7 May 2003 00:56:13 -0000 1.32 --- index.shtml 30 May 2003 03:28:01 -0000 1.33 *************** *** 33,39 **** <a href="http://sourceforge.net/project/showfiles.php?group_id=63836&release_id=153467">pdf</a> ] - How to use ArgoUML with Pymerase (Incomplete)<br> <a href="pymweb/install-index.shtml">Pymweb Install</a> [ <a href="pymweb/pymweb-install.html">html</a> | ! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=156791">pdf</a> ] - Install docs for Pymerase web front end<br> <a href="pymweb/manual-index.shtml">Pymweb Manual</a> [ <a href="pymweb/pymweb-manual.html">html</a> | ! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=155212">pdf</a> ] - Manual for Pymerase web front end<br> <a href="input">Input Modules</a> - Documentation about Input Modules<br> --- 33,39 ---- <a href="http://sourceforge.net/project/showfiles.php?group_id=63836&release_id=153467">pdf</a> ] - How to use ArgoUML with Pymerase (Incomplete)<br> <a href="pymweb/install-index.shtml">Pymweb Install</a> [ <a href="pymweb/pymweb-install.html">html</a> | ! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=162441">pdf</a> ] - Install docs for Pymerase web front end<br> <a href="pymweb/manual-index.shtml">Pymweb Manual</a> [ <a href="pymweb/pymweb-manual.html">html</a> | ! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=162442">pdf</a> ] - Manual for Pymerase web front end<br> <a href="input">Input Modules</a> - Documentation about Input Modules<br> |
|
From: <ki...@us...> - 2003-05-30 03:27:45
|
Update of /cvsroot/pymerase/htdocs/docs/pymweb
In directory sc8-pr-cvs1:/tmp/cvs-serv4487
Modified Files:
index.shtml
Log Message:
updated links to files
Index: index.shtml
===================================================================
RCS file: /cvsroot/pymerase/htdocs/docs/pymweb/index.shtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.shtml 2 May 2003 23:26:29 -0000 1.4
--- index.shtml 30 May 2003 03:27:42 -0000 1.5
***************
*** 24,30 ****
<td width="100%" bgcolor="#6C8AFF">
<a href="install-index.shtml">Pymweb Install</a> [ <a href="pymweb-install.html">html</a> |
! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=156791">pdf</a> ] - Install docs for Pymerase web front end<br>
<a href="manual-index.shtml">Pymweb Manual</a> [ <a href="pymweb-manual.html">html</a> |
! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=155212">pdf</a> ] - Manual for Pymerase web front end<br><br>
</td>
</tr>
--- 24,30 ----
<td width="100%" bgcolor="#6C8AFF">
<a href="install-index.shtml">Pymweb Install</a> [ <a href="pymweb-install.html">html</a> |
! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=162441">pdf</a> ] - Install docs for Pymerase web front end<br>
<a href="manual-index.shtml">Pymweb Manual</a> [ <a href="pymweb-manual.html">html</a> |
! <a href="https://sourceforge.net/project/showfiles.php?group_id=63836&release_id=162442">pdf</a> ] - Manual for Pymerase web front end<br><br>
</td>
</tr>
|
|
From: <ki...@us...> - 2003-05-30 03:04:31
|
Update of /cvsroot/pymerase/htdocs/docs/pymweb
In directory sc8-pr-cvs1:/tmp/cvs-serv24371
Modified Files:
pymweb-manual.html
Log Message:
updated docs
Index: pymweb-manual.html
===================================================================
RCS file: /cvsroot/pymerase/htdocs/docs/pymweb/pymweb-manual.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pymweb-manual.html 25 Apr 2003 20:11:21 -0000 1.2
--- pymweb-manual.html 30 May 2003 03:04:29 -0000 1.3
***************
*** 21,25 ****
Copyright © 2003 California Institute of Technology </h3>
! <h3 align="center">Version 0.1.2<br />Apr 25, 2003
</h3>
--- 21,25 ----
Copyright © 2003 California Institute of Technology </h3>
! <h3 align="center">Version 0.1.3<br />May 29, 2003
</h3>
***************
*** 100,104 ****
<div class="p"><!----></div>
<a name="tth_fIg1">
! </a> <div align="center"><img src="images/pymweb-front-end.jpg"></div>
<center>Figure 1: <font color="#0000FF">Pymweb - Pymerase Web Front End</font></center>
--- 100,104 ----
<div class="p"><!----></div>
<a name="tth_fIg1">
! </a> <img src="images/pymweb-front-end.jpg">
<center>Figure 1: <font color="#0000FF">Pymweb - Pymerase Web Front End</font></center>
***************
*** 335,339 ****
<div class="p"><!----></div>
<a name="tth_fIg2">
! </a> <div align="center"><img src="images/pymweb-output.jpg"></div>
<center>Figure 2: <font color="#0000FF">Pymweb - Succesful Output</font></center>
--- 335,339 ----
<div class="p"><!----></div>
<a name="tth_fIg2">
! </a> <img src="images/pymweb-output.jpg">
<center>Figure 2: <font color="#0000FF">Pymweb - Succesful Output</font></center>
***************
*** 362,375 ****
<h3><a name="tth_sEc3.2">
3.2</a> <font color="#0000FF">Pymweb Failure / Debugging</font></h3>
! I am going to leave this section blank for the time being as I plan to
! improve debugging and error messages in Pymweb. I don't want to waste
! my time documenting something that I know is going to be absolete in
! the near future.
<div class="p"><!----></div>
! For now, if you have any trouble with Pymweb, please join the
! pymerase-devel mailing list and send an e-mail to the list asking for
! help. Please visit http://pymerase.sf.net and click on the "Mail
! Lists" if you wish to join the mailing list.
<div class="p"><!----></div>
--- 362,390 ----
<h3><a name="tth_sEc3.2">
3.2</a> <font color="#0000FF">Pymweb Failure / Debugging</font></h3>
! Pymweb, as of v0.1.15, now displays debugging output in the web
! browser. If you have trouble understanding the error messages, you may
! copy and paste them into an e-mail to the pymerase-devel mailing list,
! or post them to the Pymerase Support Request Tracker.
<div class="p"><!----></div>
! If you believe you have found a bug, feel free to post it to the
! Pymerase Bug Tracker.
!
! <div class="p"><!----></div>
! Note, that in addition to the debugging message, you can always goto
! '/tmp/pymweb/@sessionNumber/' and check on the files located in that
! directory. You may also wish to look at the Apache error logs located
! at '/var/log/apache/error.log'.
!
! <div class="p"><!----></div>
! If you have any trouble with Pymweb, please join the pymerase-devel
! mailing list and send an e-mail to the list asking for help. Please
! visit http://pymerase.sf.net and click on the "Mail Lists" if you
! wish to join the mailing list.
!
! <div class="p"><!----></div>
! Please send an e-mail to the pymerase-devel mailing list if you find a
! simple or common mistakes people make when using Pymweb, and I will add
! it to this documentation.
<div class="p"><!----></div>
***************
*** 379,382 ****
by <a href="http://hutchinson.belmont.ma.us/tth/">
T<sub><font size="-1">T</font></sub>H</a>,
! version 3.33.<br />On 25 Apr 2003, 12:54.</small>
</html>
--- 394,397 ----
by <a href="http://hutchinson.belmont.ma.us/tth/">
T<sub><font size="-1">T</font></sub>H</a>,
! version 3.33.<br />On 29 May 2003, 20:02.</small>
</html>
|
|
From: <ki...@us...> - 2003-05-30 03:01:59
|
Update of /cvsroot/pymerase/htdocs/docs/pymweb
In directory sc8-pr-cvs1:/tmp/cvs-serv23147
Modified Files:
pymweb-install.html
Log Message:
updated docs
Index: pymweb-install.html
===================================================================
RCS file: /cvsroot/pymerase/htdocs/docs/pymweb/pymweb-install.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pymweb-install.html 2 May 2003 23:27:54 -0000 1.3
--- pymweb-install.html 30 May 2003 03:01:56 -0000 1.4
***************
*** 21,25 ****
Copyright © 2003 California Institute of Technology </h3>
! <h3 align="center">Version 0.1.2<br />May 2, 2003
</h3>
--- 21,25 ----
Copyright © 2003 California Institute of Technology </h3>
! <h3 align="center">Version 0.1.3<br />May 29, 2003
</h3>
***************
*** 223,232 ****
<h3><a name="tth_sEc3.2">
3.2</a> <font color="#0000FF">Debuging</font></h3>
! Pymweb, in it's current state, doesn't display very much debuging
! information in the web browswer. If something doesn't work and you
! want to know what, you can goto '/tmp/pymweb/@sessionNumber/' and
! run the driver.sh script if one was generated for you. You may also
! wish to look at the Apache error logs located at
! '/var/log/apache/error.log'.
<div class="p"><!----></div>
--- 223,233 ----
<h3><a name="tth_sEc3.2">
3.2</a> <font color="#0000FF">Debuging</font></h3>
! Pymweb, as of version 0.1.15, displays debugging information in the
! web browser, which should make debugging much easier.
!
! <div class="p"><!----></div>
! Note, that you can always goto '/tmp/pymweb/@sessionNumber/' and
! check on the files located in that directory. You may also wish to
! look at the Apache error logs located at '/var/log/apache/error.log'.
<div class="p"><!----></div>
***************
*** 243,246 ****
by <a href="http://hutchinson.belmont.ma.us/tth/">
T<sub><font size="-1">T</font></sub>H</a>,
! version 3.33.<br />On 2 May 2003, 16:27.</small>
</html>
--- 244,247 ----
by <a href="http://hutchinson.belmont.ma.us/tth/">
T<sub><font size="-1">T</font></sub>H</a>,
! version 3.33.<br />On 29 May 2003, 19:48.</small>
</html>
|
|
From: <ki...@us...> - 2003-05-30 02:56:19
|
Update of /cvsroot/pymerase/Docs/pymweb
In directory sc8-pr-cvs1:/tmp/cvs-serv12750
Modified Files:
pymweb-install.tex pymweb-manual.tex
Log Message:
updated with debugging information
Index: pymweb-install.tex
===================================================================
RCS file: /cvsroot/pymerase/Docs/pymweb/pymweb-install.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pymweb-install.tex 7 May 2003 23:33:21 -0000 1.2
--- pymweb-install.tex 30 May 2003 02:40:18 -0000 1.3
***************
*** 28,32 ****
\author{Brandon King \\
Copyright \copyright ~2003 California Institute of Technology}
! \date{Version 0.1.2\\\today}
\maketitle
\thispagestyle{empty}
--- 28,32 ----
\author{Brandon King \\
Copyright \copyright ~2003 California Institute of Technology}
! \date{Version 0.1.3\\\today}
\maketitle
\thispagestyle{empty}
***************
*** 150,159 ****
\subsection{\cb Debuging}
! Pymweb, in it's current state, doesn't display very much debuging
! information in the web browswer. If something doesn't work and you
! want to know what, you can goto '/tmp/pymweb/{@sessionNumber}/' and
! run the driver.sh script if one was generated for you. You may also
! wish to look at the Apache error logs located at
! '/var/log/apache/error.log'.
Please e-mail pymerase-devel at lists.sourceforge.net if you have and
--- 150,159 ----
\subsection{\cb Debuging}
! Pymweb, as of version 0.1.15, displays debugging information in the
! web browser, which should make debugging much easier.
!
! Note, that you can always goto '/tmp/pymweb/{@sessionNumber}/' and
! check on the files located in that directory. You may also wish to
! look at the Apache error logs located at '/var/log/apache/error.log'.
Please e-mail pymerase-devel at lists.sourceforge.net if you have and
Index: pymweb-manual.tex
===================================================================
RCS file: /cvsroot/pymerase/Docs/pymweb/pymweb-manual.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pymweb-manual.tex 25 Apr 2003 19:41:29 -0000 1.2
--- pymweb-manual.tex 30 May 2003 02:40:18 -0000 1.3
***************
*** 28,32 ****
\author{Brandon King \\
Copyright \copyright ~2003 California Institute of Technology}
! \date{Version 0.1.2\\\today}
\maketitle
\thispagestyle{empty}
--- 28,32 ----
\author{Brandon King \\
Copyright \copyright ~2003 California Institute of Technology}
! \date{Version 0.1.3\\\today}
\maketitle
\thispagestyle{empty}
***************
*** 258,270 ****
\subsection{\cb Pymweb Failure / Debugging}
! I am going to leave this section blank for the time being as I plan to
! improve debugging and error messages in Pymweb. I don't want to waste
! my time documenting something that I know is going to be absolete in
! the near future.
! For now, if you have any trouble with Pymweb, please join the
! pymerase-devel mailing list and send an e-mail to the list asking for
! help. Please visit http://pymerase.sf.net and click on the ``Mail
! Lists'' if you wish to join the mailing list.
\end{document}
--- 258,282 ----
\subsection{\cb Pymweb Failure / Debugging}
! Pymweb, as of v0.1.15, now displays debugging output in the web
! browser. If you have trouble understanding the error messages, you may
! copy and paste them into an e-mail to the pymerase-devel mailing list,
! or post them to the Pymerase Support Request Tracker.
! If you believe you have found a bug, feel free to post it to the
! Pymerase Bug Tracker.
!
! Note, that in addition to the debugging message, you can always goto
! '/tmp/pymweb/{@sessionNumber}/' and check on the files located in that
! directory. You may also wish to look at the Apache error logs located
! at '/var/log/apache/error.log'.
!
! If you have any trouble with Pymweb, please join the pymerase-devel
! mailing list and send an e-mail to the list asking for help. Please
! visit http://pymerase.sf.net and click on the ``Mail Lists'' if you
! wish to join the mailing list.
!
! Please send an e-mail to the pymerase-devel mailing list if you find a
! simple or common mistakes people make when using Pymweb, and I will add
! it to this documentation.
\end{document}
|
|
From: <ki...@us...> - 2003-05-30 02:44:50
|
Update of /cvsroot/pymerase/Docs/pymweb In directory sc8-pr-cvs1:/tmp/cvs-serv15073 Modified Files: ChangeLog Log Message: usual Index: ChangeLog =================================================================== RCS file: /cvsroot/pymerase/Docs/pymweb/ChangeLog,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ChangeLog 2 May 2003 23:21:27 -0000 1.1 --- ChangeLog 30 May 2003 02:44:47 -0000 1.2 *************** *** 1,2 **** --- 1,8 ---- + 2003-05-29 - Pymweb Manual: + Added Debugging Information + + 2003-05-29 - Pymweb Install: + Updated Debugging Information + 2003-05-02 - Pymweb Install: Removed coming soon notice |
|
From: <ki...@us...> - 2003-05-30 02:00:56
|
Update of /cvsroot/pymerase/pymerase/pymweb/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv24966
Modified Files:
pymweb.py
Log Message:
now launches pymerase directly instead of calling from shell script
now gives more meaningful error messages when it crashes
Index: pymweb.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymweb/cgi/pymweb.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** pymweb.py 30 Apr 2003 19:10:52 -0000 1.14
--- pymweb.py 30 May 2003 02:00:50 -0000 1.15
***************
*** 34,42 ****
import pymerase
- import cgi
import os
import tempfile
import re
import glob
rev = "$Revision$"
--- 34,44 ----
import pymerase
import os
import tempfile
import re
import glob
+ import cgi
+ import cgitb
+ cgitb.enable()
rev = "$Revision$"
***************
*** 46,86 ****
VERSION = '0.%s' % (rev)
! def getDriverScript(dest, compress, inputMod):
! if compress == 'Tar&Gzip' and inputMod == "parseXMI":
! text = """#!/bin/bash
! export PYTHONPATH=/home/king/proj/smw
! cd %s
! python ./driver.py > /dev/null
! if [ -e %s ] ; then
! tar cvzf %s.tar.gz %s > /dev/null
! else
! cat %s.bs
! fi
! """ % (DIRPATH, dest, dest, dest, dest)
!
! elif compress == 'Zip' and inputMod == "parseXMI":
! text = """#!/bin/bash
! export PYTHONPATH=/home/king/proj/smw
! cd %s
! python ./driver.py > /dev/null
! if [ -e %s ] ; then
! zip %s.zip %s > /dev/null
! else
! cat %s.bs
! fi
! """ % (DIRPATH, dest, dest, dest, dest)
!
! elif compress == 'None' and inputMod == 'parseXMI':
! text = """#!/bin/bash
! export PYTHONPATH=/home/king/proj/smw
! cd %s
! python ./driver.py > /dev/null
!
! """ % (DIRPATH)
!
! elif compress == 'Tar&Gzip' and inputMod == 'parseGenexSchemaXML':
text = """#!/bin/bash
cd %s
- python ./driver.py > /dev/null
if [ -e %s ] ; then
tar cvzf %s.tar.gz %s > /dev/null
--- 48,55 ----
VERSION = '0.%s' % (rev)
! def getCompressionScript(dest, compress):
! if compress == 'Tar&Gzip':
text = """#!/bin/bash
cd %s
if [ -e %s ] ; then
tar cvzf %s.tar.gz %s > /dev/null
***************
*** 90,97 ****
""" % (DIRPATH, dest, dest, dest, dest)
! elif compress == 'Zip' and inputMod == 'parseGenexSchemaXML':
text = """#!/bin/bash
cd %s
- python ./driver.py > /dev/null
if [ -e %s ] ; then
zip %s.zip %s > /dev/null
--- 59,65 ----
""" % (DIRPATH, dest, dest, dest, dest)
! elif compress == 'Zip':
text = """#!/bin/bash
cd %s
if [ -e %s ] ; then
zip %s.zip %s > /dev/null
***************
*** 101,111 ****
""" % (DIRPATH, dest, dest, dest, dest)
! elif compress == 'None' and inputMod == 'parseGenexSchemaXML':
! text = """#!/bin/bash
! cd %s
! python ./driver.py > /dev/null
!
! """ % (DIRPATH)
!
else:
raise ValueError, 'Compression type of %s is invalid.' % (compress)
--- 69,75 ----
""" % (DIRPATH, dest, dest, dest, dest)
! elif compress == 'None':
! return None
!
else:
raise ValueError, 'Compression type of %s is invalid.' % (compress)
***************
*** 113,140 ****
return text
- def getDriverProgram(input, output, schema, dest):
- temp = """#!/usr/bin/env python2.2
-
- import sys
- import os
-
- import pymerase
! if __name__ == \"__main__\":
! schema = os.path.abspath(\"%schema%\")
! outputPath = os.path.abspath(\"%dest%\")
pymerase.run(schema,
! \"%input%\",
outputPath,
! \"%output%\")
! """
!
! temp = re.sub('%input%', input, temp)
! temp = re.sub('%output%', output, temp)
! temp = re.sub('%schema%', os.path.join(DIRPATH, schema), temp)
! temp = re.sub('%dest%', os.path.join(DIRPATH, dest), temp)
! return temp
--- 77,96 ----
return text
! def launchPymerase(input, output, schema, dest):
! import sys
! import os
!
! import pymerase
!
! schema = os.path.abspath(os.path.join(DIRPATH, schema))
! outputPath = os.path.abspath(os.path.join(DIRPATH, dest))
pymerase.run(schema,
! input,
outputPath,
! output)
! return 0
***************
*** 240,245 ****
fileName = fileName[:-7]
! if fileName == 'driver.sh' \
! or fileName == 'driver.py' \
or fileName == 'index.html' \
or fileName == 'untar.sh':
--- 196,200 ----
fileName = fileName[:-7]
! if fileName == 'cmp.sh' \
or fileName == 'index.html' \
or fileName == 'untar.sh':
***************
*** 255,260 ****
return 0
! if dest == 'driver.sh' \
! or dest == 'driver.py' \
or dest == 'index.html' \
or dest == 'untar.sh':
--- 210,214 ----
return 0
! if dest == 'cmp.sh' \
or dest == 'index.html' \
or dest == 'untar.sh':
***************
*** 354,380 ****
html += text
! driver = getDriverProgram(input,
! output,
! fileName,
! dest)
!
! driverPath = saveFile('driver.py', driver)
!
! script = getDriverScript(dest, compression, input)
! scriptPath = saveFile('driver.sh', script)
!
! fullPath = os.path.join(DIRPATH, scriptPath)
! #print "<br>Processing %s<br>" % (fullPath)
! os.chmod(fullPath, 0755)
! text = os.spawnl(os.P_WAIT, fullPath, fullPath)
! #print '-----<br>'
! #print 'driver.sh exit code:', text, '<br>'
! #print '-----<br>'
!
! #if str(text) == '127':
! # debug()
if str(text) != '0':
text = 'ERROR, exit code %s<br>\n' % (text)
--- 308,333 ----
html += text
! ##############################
! # Launch Pymerase
! ##############################
! rv = launchPymerase(input, output, fileName, dest)
! if rv != 0:
! raise ValueError, 'Pymweb broke badly'
! ##############################
! # Compress Output if Requested
! ##############################
! compressScript = getCompressionScript(dest, compression)
+ if compressScript is not None:
+ cmpScriptPath = saveFile('cmp.sh', compressScript)
+ fullCmpPath = os.path.join(DIRPATH, cmpScriptPath)
+ os.chmod(fullCmpPath, 0755)
+ text = os.spawnl(os.P_WAIT, fullCmpPath, fullCmpPath)
+ else:
+ #compress type is None, don't compress
+ text = 0
+
if str(text) != '0':
text = 'ERROR, exit code %s<br>\n' % (text)
|
|
From: <ki...@us...> - 2003-05-30 01:15:06
|
Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv19458
Modified Files:
CreatePyTkWidgets.py
Log Message:
changed print statements to warning system
added code to make sure a list has at least one element in it before accessing it.
Index: CreatePyTkWidgets.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreatePyTkWidgets.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CreatePyTkWidgets.py 8 Apr 2003 22:42:26 -0000 1.15
--- CreatePyTkWidgets.py 30 May 2003 00:53:45 -0000 1.16
***************
*** 46,49 ****
--- 46,54 ----
from pymerase.ClassMembers import getAllAssociationEnds
+ from pymerase.util.Warnings import DebugWarning
+ from pymerase.util.Warnings import InfoWarning
+ import warnings
+ from warnings import warn
+
############################
# Globals
***************
*** 83,87 ****
os.mkdir(destination)
elif os.path.isdir(destination) == 0:
! print "%s exists but is not a directory." % (destination)
sys.exit(2)
--- 88,93 ----
os.mkdir(destination)
elif os.path.isdir(destination) == 0:
! warn("%s exists but is not a directory." % (destination),
! RuntimeWarning)
sys.exit(2)
***************
*** 102,107 ****
filesToCopy = glob.glob(search)
! print ""
! print "--Copying Lib Files--"
for file in filesToCopy:
filePath, fileName = os.path.split(file)
--- 108,113 ----
filesToCopy = glob.glob(search)
! warn("--Copying Lib Files--", InfoWarning)
!
for file in filesToCopy:
filePath, fileName = os.path.split(file)
***************
*** 110,118 ****
#If not a template file, copy
if file not in template_files:
! print '%s' % (fileName)
shutil.copyfile(file, fileDest)
#Else, add information, then copy
else:
! print '%s' % (fileName)
f = open(file, 'r')
newFile = re.sub('%DBAPI%', templateDict['%DBAPI%'], f.read())
--- 116,124 ----
#If not a template file, copy
if file not in template_files:
! warn('%s' % (fileName), DebugWarning)
shutil.copyfile(file, fileDest)
#Else, add information, then copy
else:
! warn('%s' % (fileName), DebugWarning)
f = open(file, 'r')
newFile = re.sub('%DBAPI%', templateDict['%DBAPI%'], f.read())
***************
*** 123,128 ****
df.close()
! print "--Done--"
! print ""
--- 129,134 ----
df.close()
! warn("--Done--", InfoWarning)
!
***************
*** 158,162 ****
#FIXME: Needs to be updated when full packages support is
# added to pymerase.
! apiName = classList[0].getPackage()
templateDict['%DBAPI%'] = apiName
--- 164,171 ----
#FIXME: Needs to be updated when full packages support is
# added to pymerase.
! if len(classList) >= 1:
! apiName = classList[0].getPackage()
! else:
! raise ValueError, 'ERROR, len(classList) < 1'
templateDict['%DBAPI%'] = apiName
***************
*** 197,206 ****
type = "FK"
! print "Processing(%s:%s)" % (myClass.getName(TRANSLATOR_NAME), type)
! print " CapsWord: %s; English: %s" % (myClass.getName(DBAPI_TRANSLATOR),
! myClass.getName(TRANSLATOR_NAME))
#Process Primary keys
if attrib.isPrimaryKey() or type == "serial":
! print 'Ignoring Primary Key'
#Process Foreign Keys
--- 206,217 ----
type = "FK"
! warn("Processing(%s:%s)" % (myClass.getName(TRANSLATOR_NAME), type),
! DebugWarning)
! warn(" CapsWord: %s; English: %s" % (myClass.getName(DBAPI_TRANSLATOR),
! myClass.getName(TRANSLATOR_NAME)),
! DebugWarning)
#Process Primary keys
if attrib.isPrimaryKey() or type == "serial":
! warn('Ignoring Primary Key', InfoWarning)
#Process Foreign Keys
***************
*** 259,263 ****
code)
elif type == "name":
! print "FIXME: Ignoring name type"
#Process Text
elif type == "text":
--- 270,274 ----
code)
elif type == "name":
! warn("FIXME: Ignoring 'name' type", InfoWarning)
#Process Text
elif type == "text":
***************
*** 322,335 ****
#Process Time Stamps
elif type == "timestamp with time zone":
! print "FIXME: Ignoring timestamp"
#Write out what is not being handled.
else:
! print ""
! print "Table(%s), Type(%s), Attribute(%s) not processed." % \
(myClass.getName(TRANSLATOR_NAME),
type,
! attrib.getName(TRANSLATOR_NAME))
! print "Please e-mail the above line to pym...@li..."
! print ""
--- 333,345 ----
#Process Time Stamps
elif type == "timestamp with time zone":
! warn("FIXME: Ignoring timestamp", InfoWarning)
#Write out what is not being handled.
else:
! warn("Table(%s), Type(%s), Attribute(%s) not processed.\n" \
! "Please e-mail the above line to pym...@li..." % \
(myClass.getName(TRANSLATOR_NAME),
type,
! attrib.getName(TRANSLATOR_NAME)),
! InfoWarning)
***************
*** 337,345 ****
assocList = myClass.getAssociationEnds().values()
! print "ASSOCIATION ENDS:"
for assocEnd in assocList:
! print " ", assocEnd.getAttributeName(DBAPI_TRANSLATOR)
! print " ", assocEnd.getName(DBAPI_TRANSLATOR)
! print "END ASSOCIATIONS"
#Remove '%*%'
--- 347,355 ----
assocList = myClass.getAssociationEnds().values()
! warn("ASSOCIATION ENDS:", DebugWarning)
for assocEnd in assocList:
! warn(" %s" % (assocEnd.getAttributeName(DBAPI_TRANSLATOR)), DebugWarning)
! warn(" %s" % (assocEnd.getName(DBAPI_TRANSLATOR)), DebugWarning)
! warn("END ASSOCIATIONS", DebugWarning)
#Remove '%*%'
***************
*** 356,360 ****
f.close()
! print os.linesep \
! + "Python Tkinter Widget Generation Complete... Good Bye." \
! + os.linesep
--- 366,368 ----
f.close()
! warn("Python Tkinter Widget Generation Complete... Good Bye.", InfoWarning)
|
|
From: <ki...@us...> - 2003-05-30 01:12:06
|
Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv30714
Modified Files:
CreateGraphvizUML.py
Log Message:
syntax error fixed
Index: CreateGraphvizUML.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreateGraphvizUML.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CreateGraphvizUML.py 30 May 2003 00:37:41 -0000 1.8
--- CreateGraphvizUML.py 30 May 2003 01:12:03 -0000 1.9
***************
*** 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)
--- 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)
|
|
From: <ki...@us...> - 2003-05-30 00:59:52
|
Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv22845
Modified Files:
CreateReport.py
Log Message:
updated to warning system
Index: CreateReport.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreateReport.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** CreateReport.py 18 Feb 2003 18:22:01 -0000 1.5
--- CreateReport.py 30 May 2003 00:59:49 -0000 1.6
***************
*** 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
***************
*** 111,115 ****
f.write(text)
f.close()
! print os.linesep \
! + "Report Generation Complete... Good Bye." \
! + os.linesep
--- 116,119 ----
f.write(text)
f.close()
! warn("Report Generation Complete... Good Bye.", InfoWarning)
!
|