Hello, I'm testing new web2py release and not all my code works on it. So 
the question: is ir bug or feature that in lines (gluon/sqlhtml.py, lines 
2419-2422)

try:
    field = sqlrows.db[tablename][fieldname]
except KeyError:
    field = None

I got:

...

File "/home/donatas/ProCursus/projects/web2py/gluon/sqlhtml.py", line 2420, in 
__init__
    field = sqlrows.db[tablename][fieldname]
  File "/home/donatas/ProCursus/projects/web2py/gluon/dal.py", line 7567, in 
__getitem__
    return ogetattr(self, str(key))

AttributeError: 'Table' object has no attribute 'user'


In v 1.99.7 this goes to 'except' part end everything is fine, but in 2.0.5 I 
have this error. I am trying to get 'auth_user.user', which was set to:

records[i].auth_user.user = '{0} {1}'.format(r.auth_user.first_name, 
r.auth_user.last_name) in earlier code.



-- 



Reply via email to