cosmetic
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 1 Dec 2006 14:32:39 +0000 (14:32 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 1 Dec 2006 14:32:39 +0000 (14:32 +0000)
PLC/Cache.py
PLC/Keys.py

index 535aab4..6c573da 100644 (file)
@@ -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]
index 9af1e6c..3018015 100644 (file)
@@ -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)]