Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv15673
Modified Files:
CreateDBAPI.py
Log Message:
Renamed old MODULES tag to CLASSES_LIST tag as it represented the
names of classes and what modules they were located in.
Added the MODULES_LIST tag which contained the python module name to
all of the modules containing the API classes. (This is useful for the
new moduleReload code).
Index: CreateDBAPI.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreateDBAPI.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** CreateDBAPI.py 5 Feb 2003 22:58:33 -0000 1.26
--- CreateDBAPI.py 5 Apr 2003 00:25:21 -0000 1.27
***************
*** 392,400 ****
module_list += "('%s', %s), " % (moduleName, string.join(modulePath,'.'))
return '['+module_list+']'
!
package_macros = {}
package_macros['IMPORT_MODULES'] = createImports(packageInformation)
! package_macros['MODULES'] = createModuleToClassList(packageInformation)
return package_macros
--- 392,409 ----
module_list += "('%s', %s), " % (moduleName, string.join(modulePath,'.'))
return '['+module_list+']'
!
! def createModulesList(packageInformation):
! """Return list of modules, useful for reloading when reinitializing
! """
! module_list = []
! for moduleName, modulePath in packageInformation:
! module_list += ["%s" % (modulePath)]
! return string.join(module_list, ", ")
!
package_macros = {}
package_macros['IMPORT_MODULES'] = createImports(packageInformation)
! package_macros['CLASSES_LIST'] = createModuleToClassList(packageInformation)
! package_macros['MODULES_LIST'] = createModulesList(packageInformation)
return package_macros
|