I will try to make a demo app that reproduce the problem... And I will post
back here the result and the app.

Richard

On Thu, Dec 22, 2011 at 9:04 AM, Anthony <[email protected]> wrote:

> On Wednesday, December 21, 2011 11:26:35 PM UTC-5, Massimo Di Pierro wrote:
>>
>> It work at level of inserting data in the database. It works if the
>> input contains the data needed for the computation.
>>
>
> I think it's supposed to work when defaults are specified for the fields,
> right? But if you happen to have default=None, I don't think it will work
> because the DAL treats that as if there is no default (rather than a
> default with the value of None). So,
>
> db.define_table('test1',
>     Field('f1', 'string', default=None),
>     Field('f2', 'integer', default=None),
>     Field('computefield', compute=**lambda r: r))
>
> won't help in this case, will it?
>
> Anthony
>

Reply via email to