replaced unneccesary loop with API call
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Jan 2008 19:42:36 +0000 (19:42 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Jan 2008 19:42:36 +0000 (19:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8309 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index c918333..77d9788 100644 (file)
@@ -47,9 +47,9 @@ class oilsIDLParser(object):
             Namespace is ignored for now.. 
             not sure if minidom has namespace support.
             """
-        for (k, v) in node.attributes.items():
-            if k == name:
-                return v
+        attr = node.attributes.get(name)
+        if attr:
+            return attr.nodeValue
         return None
 
     def parseIDL(self):