From: miker Date: Fri, 15 Aug 2008 14:03:09 +0000 (+0000) Subject: protecting against (future) non-class root node children X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3d1eaca39f2462c5a7103c1271022c78c87c92e5;p=Evergreen.git protecting against (future) non-class root node children git-svn-id: svn://svn.open-ils.org/ILS/trunk@10369 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/python/oils/utils/idl.py b/Open-ILS/src/python/oils/utils/idl.py index 76bf5f8eed..32da172f2b 100644 --- a/Open-ILS/src/python/oils/utils/idl.py +++ b/Open-ILS/src/python/oils/utils/idl.py @@ -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.