[open-ils-commits] r8312 - trunk/Open-ILS/src/python/oils/utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 4 09:24:53 EST 2008
Author: erickson
Date: 2008-01-04 09:01:02 -0500 (Fri, 04 Jan 2008)
New Revision: 8312
Modified:
trunk/Open-ILS/src/python/oils/utils/idl.py
Log:
parsing primary, sequence, and primitive settings from IDL
Modified: trunk/Open-ILS/src/python/oils/utils/idl.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/idl.py 2008-01-03 20:59:14 UTC (rev 8311)
+++ trunk/Open-ILS/src/python/oils/utils/idl.py 2008-01-04 14:01:02 UTC (rev 8312)
@@ -95,6 +95,11 @@
keys = []
idlobj = self.IDLObject[cls]
+ idlobj['field_meta'] = {
+ 'primary': self.__getAttr(fields, 'oils_persist:primary', OILS_NS_PERSIST),
+ 'sequence': self.__getAttr(fields, 'oils_persist:sequence', OILS_NS_PERSIST)
+ }
+
for field in fields.childNodes:
if field.nodeType == field.ELEMENT_NODE:
keys.append(None)
@@ -113,9 +118,10 @@
raise e
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)
+ 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)
+ obj['primitive'] = self.__getAttr(field, 'oils_persist:primitive', OILS_NS_PERSIST)
if virtual == string.lower('true'):
obj['virtual'] = True
More information about the open-ils-commits
mailing list