uncommented faster code
This commit is contained in:
12
gluon/dal.py
12
gluon/dal.py
@@ -6869,13 +6869,11 @@ class Row(object):
|
||||
|
||||
def __getitem__(self, k):
|
||||
key=str(k)
|
||||
#_extra = self.__dict__.get('_extra', None)
|
||||
#if _extra:
|
||||
# v = _extra.get(key, None)
|
||||
# if v:
|
||||
# return v
|
||||
if key in self.get('_extra',{}):
|
||||
return self._extra[key]
|
||||
_extra = self.__dict__.get('_extra', None)
|
||||
if _extra:
|
||||
v = _extra.get(key, None)
|
||||
if v:
|
||||
return v
|
||||
m = REGEX_TABLE_DOT_FIELD.match(key)
|
||||
if m:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user