temp vars in dal.py (fixed error)

This commit is contained in:
mdipierro committed 2012-08-28 19:07:26 -05:00
1 parent 9fbda2dde4
commit 2331aa4a0c
4 files changed
+63 -47

No files matched your search

+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)