[open-ils-commits] r7793 - trunk/Open-ILS/src/python/oils/utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Sep 16 13:52:45 EDT 2007
Author: erickson
Date: 2007-09-16 13:44:20 -0400 (Sun, 16 Sep 2007)
New Revision: 7793
Modified:
trunk/Open-ILS/src/python/oils/utils/idl.py
Log:
fixed some attr fetching bugs. also loading tablename (fwiw). fixed some logging
Modified: trunk/Open-ILS/src/python/oils/utils/idl.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/idl.py 2007-09-16 17:43:09 UTC (rev 7792)
+++ trunk/Open-ILS/src/python/oils/utils/idl.py 2007-09-16 17:44:20 UTC (rev 7793)
@@ -24,7 +24,7 @@
self.IDLObject = {}
def setIDL(self, file):
- osrfLogInfo("setting IDL file to " + file)
+ osrfLogInfo("setting IDL file to " + str(file))
self.idlFile = file
def __getAttr(self, node, name, ns=None):
@@ -61,6 +61,7 @@
obj['fieldmapper'] = self.__getAttr(child, 'oils_obj:fieldmapper', OILS_NS_OBJ)
obj['virtual'] = self.__getAttr(child, 'oils_perist:virtual', OILS_NS_PERSIST)
obj['rpt_label'] = self.__getAttr(child, 'reporter:label', OILS_NS_REPORTER)
+ obj['tablename'] = self.__getAttr(child, 'oils_persist:tablename', OILS_NS_REPORTER)
keys = []
for classNode in child.childNodes:
@@ -68,7 +69,7 @@
if classNode.nodeName == 'fields':
keys = self.parseFields(id, classNode)
- osrfNetworkRegisterHint(id, keys, 'array' )
+ osrfNetworkRegisterHint(id, keys, 'array')
doc.unlink()
@@ -96,7 +97,7 @@
osrfLogErr("parseFields(): position out of range. pos=%d : key-size=%d" % (position, len(keys)))
raise e
- virtual = self.__getAttr(field, 'virtual', OILS_NS_PERSIST)
+ virtual = self.__getAttr(field, 'oils_persist:virtual', OILS_NS_PERSIST)
obj['rpt_label'] = self.__getAttr(field, 'reporter:label', OILS_NS_REPORTER)
obj['rpt_dtype'] = self.__getAttr(field, 'reporter:datatype', OILS_NS_REPORTER)
obj['rpt_select'] = self.__getAttr(field, 'reporter:selector', OILS_NS_REPORTER)
More information about the open-ils-commits
mailing list