From 09e9046e82759600165dd42b297011854708b859 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 1 Dec 2006 14:32:39 +0000 Subject: [PATCH] cosmetic --- PLC/Cache.py | 2 +- PLC/Keys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)] -- 2.43.0