if we have already parsed the IDL,no need to re-parse
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 11 Nov 2007 17:41:09 +0000 (17:41 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 11 Nov 2007 17:41:09 +0000 (17:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8056 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5290203..2ef7c8a 100644 (file)
@@ -9,6 +9,7 @@ __global_parser = None
 
 def oilsParseIDL():
     global __global_parser
+    if __global_parser: return # no need to re-parse the IDL
     idlParser = oilsIDLParser();
     idlParser.setIDL(osrfSettingsValue('IDL'))
     idlParser.parseIDL()