fixed a problem with lazy tables and self.__dict__=self magic
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-21 15:56:50) dev
|
Version 2.00.0 (2012-08-21 17:41:57) dev
|
||||||
|
|||||||
@@ -6983,6 +6983,9 @@ def index():
|
|||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
key = str(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:
|
if not key is '_LAZY_TABLES' and key in self._LAZY_TABLES:
|
||||||
tablename, fields, args = self._LAZY_TABLES.pop(key)
|
tablename, fields, args = self._LAZY_TABLES.pop(key)
|
||||||
return self.lazy_define_table(tablename,*fields,**args)
|
return self.lazy_define_table(tablename,*fields,**args)
|
||||||
|
|||||||
Reference in New Issue
Block a user