I need to see more code to debug this. I cannot say if it ia bug or not.
On Saturday, 1 September 2012 09:44:00 UTC-5, Donatas Burba wrote:
>
> 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.
>
>
>
>
--