[open-ils-commits] r10369 - trunk/Open-ILS/src/python/oils/utils

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 15 10:03:11 EDT 2008


Author: miker
Date: 2008-08-15 10:03:09 -0400 (Fri, 15 Aug 2008)
New Revision: 10369

Modified:
   trunk/Open-ILS/src/python/oils/utils/idl.py
Log:
protecting against (future) non-class root node children

Modified: trunk/Open-ILS/src/python/oils/utils/idl.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/idl.py	2008-08-14 19:43:08 UTC (rev 10368)
+++ trunk/Open-ILS/src/python/oils/utils/idl.py	2008-08-15 14:03:09 UTC (rev 10369)
@@ -83,7 +83,7 @@
 
         for child in root.childNodes:
         
-            if child.nodeType == child.ELEMENT_NODE:
+            if child.nodeType == child.ELEMENT_NODE and child.nodeName == 'class':
         
                 # -----------------------------------------------------------------------
                 # 'child' is the main class node for a fieldmapper class.



More information about the open-ils-commits mailing list