fixed a problem with missing _extra

This commit is contained in:
mdipierro
2013-07-02 08:33:47 -05:00
parent 6017e749eb
commit b28d155f0e
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.02.08.03.03 Version 2.6.0-development+timestamp.2013.07.02.08.33.02
+2 -5
View File
@@ -6869,11 +6869,8 @@ class Row(object):
def __getitem__(self, k): def __getitem__(self, k):
key=str(k) key=str(k)
_extra = getattr(self, '_extra', None) if key in self.get('_extra',{}):
if _extra: return self._extra[key]
return _extra.get(key)
if v:
return v
m = REGEX_TABLE_DOT_FIELD.match(key) m = REGEX_TABLE_DOT_FIELD.match(key)
if m: if m:
try: try: