With this code:

tabel = SQLFORM.grid(db.akb_articles)
or
tabel = SQLFORM.smartgrid(db.akb_articles)

I get the same result except that the reference to line 1631 in sqlhtml.py
is not there when I use .grid:

Traceback (most recent call last):
  File "/home/js/web2py/gluon/restricted.py", line 194, in restricted
    exec ccode in environment
  File "/home/js/web2py/applications/akb/controllers/default.py"
<http://localhost:8000/admin/default/edit/akb/controllers/default.py>,
line 326, in <module>
  File "/home/js/web2py/gluon/globals.py", line 146, in <lambda>
    self._caller = lambda f: f()
  File "/home/js/web2py/applications/akb/controllers/default.py"
<http://localhost:8000/admin/default/edit/akb/controllers/default.py>,
line 153, in artikels
    tabel = SQLFORM.smartgrid(db.akb_articles,editable=False)
  File "/home/js/web2py/gluon/sqlhtml.py", line 1631, in smartgrid
    user_signature=user_signature,**kwargs)
  File "/home/js/web2py/gluon/sqlhtml.py", line 1495, in grid
    value=field.represent(value,rrow)
TypeError: <lambda>() takes exactly 1 argument (2 given)


What am I missing?

Regards
Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to