WOW! Thank you! this is awesome!!!!! :)

Mart :)

On Aug 18, 5:03 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> This is a new API so it expects a new syntax for represent that takes
> two arguments. The second argument is the record.
>
> On Aug 18, 2:47 pm, pbreit <pbreitenb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm getting errors on my tables. auth_user works OK but I get these errors
> > on three of my other tables.
>
> > Traceback (most recent call last):
> >   File "/Users/pbreit/web2py/gluon/restricted.py", line 194, in restricted
> >     exec ccode in environment
> >   File "/Users/pbreit/web2py/applications/init/controllers/default.py" 
> > <http://pb-dev.pricetack.com:8001/admin/edit/init/controllers/default.py>, 
> > line 107, in <module>
> >   File "/Users/pbreit/web2py/gluon/globals.py", line 145, in <lambda>
> >     self._caller = lambda f: f()
> >   File "/Users/pbreit/web2py/applications/init/controllers/default.py" 
> > <http://pb-dev.pricetack.com:8001/admin/edit/init/controllers/default.py>, 
> > line 12, in grid
> >     table = SQLFORM.grid(db.purchase)
> >   File "/Users/pbreit/web2py/gluon/sqlhtml.py", line 1408, in grid
> >     value=field.represent(value,row)
> >   File "/Users/pbreit/web2py/gluon/dal.py", line 3730, in repr_ref
> >     def repr_ref(id, r=referenced, f=ff): return f(r, id)
> >   File "/Users/pbreit/web2py/gluon/dal.py", line 3699, in ff
> >     row=r(id)
> >   File "/Users/pbreit/web2py/gluon/dal.py", line 3805, in __call__
> >     return self.__getitem__(key)
> >   File "/Users/pbreit/web2py/gluon/dal.py", line 3802, in __getitem__
> >     return dict.__getitem__(self, key)
> > KeyError: '1'
>
> > Traceback (most recent call last):
> >   File "/Users/pbreit/web2py/gluon/restricted.py", line 194, in restricted
> >     exec ccode in environment
> >   File "/Users/pbreit/web2py/applications/init/controllers/default.py" 
> > <http://pb-dev.pricetack.com:8001/admin/edit/init/controllers/default.py>, 
> > line 107, in <module>
> >   File "/Users/pbreit/web2py/gluon/globals.py", line 145, in <lambda>
> >     self._caller = lambda f: f()
> >   File "/Users/pbreit/web2py/applications/init/controllers/default.py" 
> > <http://pb-dev.pricetack.com:8001/admin/edit/init/controllers/default.py>, 
> > line 12, in grid
> >     table = SQLFORM.grid(db.item)
> >   File "/Users/pbreit/web2py/gluon/sqlhtml.py", line 1408, in grid
> >     value=field.represent(value,row)
> > TypeError: <lambda>() takes exactly 1 argument (2 given)

Reply via email to