From 3d1eaca39f2462c5a7103c1271022c78c87c92e5 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 15 Aug 2008 14:03:09 +0000 Subject: [PATCH] protecting against (future) non-class root node children git-svn-id: svn://svn.open-ils.org/ILS/trunk@10369 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/utils/idl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0