[open-ils-commits] r8309 - trunk/Open-ILS/src/python/oils/utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 3 15:06:21 EST 2008
Author: erickson
Date: 2008-01-03 14:42:36 -0500 (Thu, 03 Jan 2008)
New Revision: 8309
Modified:
trunk/Open-ILS/src/python/oils/utils/idl.py
Log:
replaced unneccesary loop with API call
Modified: trunk/Open-ILS/src/python/oils/utils/idl.py
===================================================================
--- trunk/Open-ILS/src/python/oils/utils/idl.py 2008-01-03 19:13:16 UTC (rev 8308)
+++ trunk/Open-ILS/src/python/oils/utils/idl.py 2008-01-03 19:42:36 UTC (rev 8309)
@@ -47,9 +47,9 @@
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):
More information about the open-ils-commits
mailing list