protecting against (future) non-class root node children
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Aug 2008 14:03:09 +0000 (14:03 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Aug 2008 14:03:09 +0000 (14:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10369 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/python/oils/utils/idl.py

index 76bf5f8..32da172 100644 (file)
@@ -83,7 +83,7 @@ class IDLParser(object):
 
         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.