This issue has been already fixed https://github.com/web2py/pydal/commit/2172b776b9c41884717902e68900b41c105e0364#diff-114ce07f361177e0669ec9a374ef7d6a Have you updated web2py (and pydal) properly?
Paolo On Monday, May 25, 2015 at 7:37:35 AM UTC+2, Mark Graves wrote: > > I seem to be having the same problem. > > On Sunday, May 24, 2015 at 6:58:26 PM UTC-5, villas wrote: >> >> Hi All, >> >> Can someone see what the problem is please? >> >> db.define_table('tag', Field('name')) >> db.define_table('test',Field('name'),Field('tags','list:reference tag')) >> >> def test(): >> grid = SQLFORM.grid(db.test, user_signature = False) >> return dict(grid=grid) >> >> Navigate to function test, try using the grid. Save a record etc and view >> it..... >> >> Traceback (most recent call last): >> File "C:\Users\David\Documents\GitHub\web2py\gluon\restricted.py", line >> 227, in restricted >> exec ccode in environment >> File >> "C:/Users/David/Documents/GitHub/web2py/applications/owners/controllers/default.py" >> <http://localhost:8000/admin/default/edit/owners/controllers/default.py>, >> line 181, in <module> >> File "C:\Users\David\Documents\GitHub\web2py\gluon\globals.py", line 403, >> in <lambda> >> self._caller = lambda f: f() >> File >> "C:/Users/David/Documents/GitHub/web2py/applications/owners/controllers/default.py" >> <http://localhost:8000/admin/default/edit/owners/controllers/default.py>, >> line 139, in test >> grid = SQLFORM.grid(db.test, fields=[db.test.id,db.test.name], >> user_signature = False) >> File "C:\Users\David\Documents\GitHub\web2py\gluon\sqlhtml.py", line 2252, >> in grid >> view_form = SQLFORM(table, record, **sqlformargs) >> File "C:\Users\David\Documents\GitHub\web2py\gluon\sqlhtml.py", line 1203, >> in __init__ >> inp = represent(field, default, record) >> File "C:\Users\David\Documents\GitHub\web2py\gluon\sqlhtml.py", line 68, >> in represent >> return f(value) >> File >> "C:\Users\David\Documents\GitHub\web2py\gluon\packages\dal\pydal\helpers\methods.py", >> line 268, in __call__ >> if isinstance(db._adapter, GoogleDatastoreAdapter): >> TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and >> types >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.