From: Thierry Parmentelat Date: Fri, 1 Dec 2006 14:32:39 +0000 (+0000) Subject: cosmetic X-Git-Tag: pycurl-7_13_1~217 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=09e9046e82759600165dd42b297011854708b859;hp=98bd8cf28ee283715fc0c15beb85e9f21ec64e85;p=plcapi.git cosmetic --- diff --git a/PLC/Cache.py b/PLC/Cache.py index 535aab4..6c573da 100644 --- a/PLC/Cache.py +++ b/PLC/Cache.py @@ -13,7 +13,7 @@ def verbose (*args): def class_attributes (classname): """ locates various attributes defined in the row class """ - topmodule = __import__ ('PLC.%ss'%classname) + topmodule = __import__ ('PLC') module = topmodule.__dict__['%ss'%classname] # local row-like class, e.g. Node row_class = module.__dict__['%s'%classname] diff --git a/PLC/Keys.py b/PLC/Keys.py index 9af1e6c..3018015 100644 --- a/PLC/Keys.py +++ b/PLC/Keys.py @@ -27,7 +27,7 @@ class Key(Row): # for Cache class_key= 'key' foreign_fields = ['key_type'] - foreign_xrefs = {} + foreign_xrefs = [] def validate_key_type(self, key_type): key_types = [row['key_type'] for row in KeyTypes(self.api)]