reverted Storage again, check for bug not reliable, :-(

This commit is contained in:
mdipierro
2012-08-22 15:27:19 -05:00
parent 715daf6824
commit 9d793348e2
3 changed files with 21 additions and 87 deletions
-12
View File
@@ -6281,11 +6281,6 @@ class Row(dict):
this is only used to store a Row
"""
# IF NOT HAVE BUG http://bugs.python.org/issue1469629 uncommend these lines and comment __getattr__, __setattr__
# def __init__(self,*args,**kwargs):
# dict.__init__(self,*args,**kwargs)
# self.__dict__ = self
def __getattr__(self, key):
return self[key]
@@ -6579,7 +6574,6 @@ class DAL(dict):
:fake_migrate_all (defaults to False). If sets to True fake migrates ALL tables
:attempts (defaults to 5). Number of times to attempt connecting
"""
# self.__dict__ = self # http://bugs.python.org/issue1469629
if not decode_credentials:
credential_decoder = lambda cred: cred
else:
@@ -7006,8 +7000,6 @@ def index():
raise SyntaxError, \
'Object %s exists and cannot be redefined' % key
dict.__setitem__(self,key,value)
# replace above line with below if not have bug http://bugs.python.org/issue1469629
# dict.__setattr__(self,key,value)
def __repr__(self):
return '<DAL ' + dict.__repr__(self) + '>'
@@ -7209,7 +7201,6 @@ class Table(dict):
:raises SyntaxError: when a supplied field is of incorrect type.
"""
# self.__dict__ = self # http://bugs.python.org/issue1469629
self._actual = False # set to True by define_table()
self._tablename = tablename
self._sequence_name = args.get('sequence_name',None) or \
@@ -7471,7 +7462,6 @@ class Table(dict):
'value must be a dictionary: %s' % value
dict.__setitem__(self, str(key), value)
# comment if not have bug http://bugs.python.org/issue1469629
def __getattr__(self, key):
return self[key]
@@ -7487,8 +7477,6 @@ class Table(dict):
if key[:1]!='_' and key in self:
raise SyntaxError, 'Object exists and cannot be redefined: %s' % key
self[key] = value
# replace with line below if have bug http://bugs.python.org/issue1469629
# dict.__setattr__(self,key,value)
def __iter__(self):
for fieldname in self.fields: