I have no error message, but I suspect the row to not be populated with the ['f_revision'] field.
Le mardi 1 mai 2012 13:31:43 UTC+2, François Delpierre a écrit :
>
> Hi,
>
> Here is exactly what I would like to have, but it does not compute on
> update :
>
> db.define_table('t_templates',
> Field('f_template', type='upload', label=T('File'),notnull=True),
>
>
> Field('f_revision', type='integer', label=T('Revision'),
> default=1,
> compute=lambda row: row['f_revision']+1 ,
> ),
> )
>
>

