From f7b12b29bc822b923db3dc4d908d2df4b9f7bb97 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 11 Nov 2008 17:00:19 +0000 Subject: [PATCH] some trivial python changes I meant to check in a while back... prevent re-parsing of IDL, updated email addr git-svn-id: svn://svn.open-ils.org/ILS/trunk@11132 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/const.py | 2 +- Open-ILS/src/python/oils/utils/csedit.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/python/oils/const.py b/Open-ILS/src/python/oils/const.py index 0fce8ce80c..a7bfc38788 100644 --- a/Open-ILS/src/python/oils/const.py +++ b/Open-ILS/src/python/oils/const.py @@ -1,6 +1,6 @@ # ----------------------------------------------------------------------- # Copyright (C) 2007 Georgia Public Library Service -# Bill Erickson +# Bill Erickson # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/Open-ILS/src/python/oils/utils/csedit.py b/Open-ILS/src/python/oils/utils/csedit.py index 127d88f423..d21f297ac4 100644 --- a/Open-ILS/src/python/oils/utils/csedit.py +++ b/Open-ILS/src/python/oils/utils/csedit.py @@ -248,7 +248,13 @@ class CSEditor(object): # ------------------------------------------------------------------------- # Creates a class method for each action on each type of fieldmapper object # ------------------------------------------------------------------------- +__editor_loaded = False def oilsLoadCSEditor(): + global __editor_loaded + if __editor_loaded: + return + __editor_loaded = True + obj = IDLParser.get_parser().IDLObject for k, fm in obj.iteritems(): -- 2.11.0