From 237a07cf242dae1fba8f75a9bfbb4b5ac774d42b Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 20 Aug 2008 06:44:26 +0000 Subject: [PATCH] quick fix for building - disable site-local accessors --- PLC/Accessors/__init__.py | 9 ++++++++- PLC/Legacy/Types.py | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/PLC/Accessors/__init__.py b/PLC/Accessors/__init__.py index b689130..7cb5fa1 100644 --- a/PLC/Accessors/__init__.py +++ b/PLC/Accessors/__init__.py @@ -1,5 +1,12 @@ # each module to define in "methods" the set of methods that it defines + +#__all__ = """ +#Accessors_standard +#Accessors_site +#""".split() + +# this trick to support for site-local stuff does not work as it would be required at build-time - need to find something else +# see also the specfile __all__ = """ Accessors_standard -Accessors_site """.split() diff --git a/PLC/Legacy/Types.py b/PLC/Legacy/Types.py index 6077c29..c7eb749 100644 --- a/PLC/Legacy/Types.py +++ b/PLC/Legacy/Types.py @@ -21,6 +21,8 @@ map = { "UpdateNodeNetworkSettingType" : "UpdateTagType", } +methods = map.keys() + # does any required renaming def rename (x): if x=='name': @@ -61,5 +63,3 @@ current_module=sys.modules[__name__] for (legacyname,newname) in map.iteritems(): setattr(current_module,legacyname,legacy_method(legacyname,newname)) -methods = map.keys() - -- 2.43.0