temp vars in dal.py (fixed error)

This commit is contained in:
mdipierro
2012-08-28 19:07:26 -05:00
parent e821955c97
commit 5af9fe0a3e
4 changed files with 63 additions and 47 deletions
+2 -1
View File
@@ -7089,7 +7089,8 @@ def index():
return self.__getattr__(str(key))
def __getattr__(self, key):
if ogetattr(self,'_lazy_tables') and not key in ogetattr(self,'_LAZY_TABLES'):
if ogetattr(self,'_lazy_tables') and \
key in ogetattr(self,'_LAZY_TABLES'):
tablename, fields, args = self._LAZY_TABLES.pop(key)
return self.lazy_define_table(tablename,*fields,**args)
return ogetattr(self, key)