fixed a problem with lazy tables and self.__dict__=self magic

This commit is contained in:
mdipierro
2012-08-21 17:42:01 -05:00
parent 3843406ba9
commit 3283ce144c
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-21 15:56:50) dev
Version 2.00.0 (2012-08-21 17:41:57) dev
+3
View File
@@ -6983,6 +6983,9 @@ def index():
def __getitem__(self, key):
key = str(key)
return dict.__getitem__(self,key)
def __getattr__(self, key):
if not key is '_LAZY_TABLES' and key in self._LAZY_TABLES:
tablename, fields, args = self._LAZY_TABLES.pop(key)
return self.lazy_define_table(tablename,*fields,**args)