here http://code.google.com/p/web2py/issues/list
Il giorno venerdì 11 maggio 2012 13:32:21 UTC+2, François Delpierre ha scritto: > > > > Le jeudi 10 mai 2012 02:08:31 UTC+2, François Delpierre a écrit : >> >> Hi, >> >> When I try to select the fields to be displayed as follow : >> form = SQLFORM.smartgrid( >> db.t_xlsfile, >> fields=dict( >> t_xlsfile=[ >> db.t_xlsfile.f_xlsfile, >> ], >> ), >> >> I immediately get this strange error : >> Traceback (most recent call last): >> File "/home/www-data/web2py/gluon/restricted.py", line 205, inrestricted >> exec ccode in environment >> File "/home/www-data/web2py/applications/init/controllers/default.py",line >> 425, in <module> >> File "/home/www-data/web2py/gluon/globals.py", line 173, in <lambda> >> self._caller = lambda f: f() >> File "/home/www-data/web2py/gluon/tools.py", line 2575, in f >> return action(*a, **b) >> File "/home/www-data/web2py/applications/init/controllers/default.py",line >> 257, in posting_history >> t_xlsfile='Table of Excel files', >> File "/home/www-data/web2py/gluon/sqlhtml.py", line 1989, in smartgrid >> user_signature=user_signature,**kwargs) >> File "/home/www-data/web2py/gluon/sqlhtml.py", line 1517, in grid >> if field._tablename in tablenames] >> AttributeError: 'str' object has no attribute '_tablename' >> >> Any idea ?? >> >