[web2py] Re: Error with virtual field

2014-01-12 Thread Massimo Di Pierro
The book is wrong. Fields should have a name. On Sunday, 12 January 2014 04:39:28 UTC-6, rif wrote: > > Manuele: Massimo suggested adding the virtualfield name parameter like > this: > > db.testtable.testfield = Field.Virtual('testfield', lambda row: 'foo') > > It works this way. > > In my ticke

[web2py] Re: Error with virtual field

2014-01-12 Thread rif
Manuele: Massimo suggested adding the virtualfield name parameter like this: db.testtable.testfield = Field.Virtual('testfield', lambda row: 'foo') It works this way. In my ticket (http://code.google.com/p/web2py/issues/detail?id=1851) I have taken the example directly from the book so I made a

[web2py] Re: Error with virtual field

2014-01-10 Thread Manuele Pesenti
Il 10/01/14 12:47, rif ha scritto: > I meant a few updates to web2admin :) thank you very mutch rif for your interest!! :) I'll use old style viertual fields for the moment M. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source