v1.99.2

I found I get no error when I change the database from postgres to sqlite.

Richard


On Sun, Jan 1, 2012 at 2:43 AM, Massimo Di Pierro
<massimo.dipie...@gmail.com> wrote:
> Your code works for me. What version of web2py? Try it is a newly
> createted application.
>
> On Dec 31, 6:37 am, Plumo <richar...@gmail.com> wrote:
>> I found when I use the compute field I get this error when inserting via
>> appadmin:
>>
>> ProgrammingError: column "update" specified more than once
>>
>> def now(record):
>>     return datetime.datetime.now()
>>
>> db.define_table('upload',
>>     Field('data', 'upload', required=True),
>>     Field('created', 'datetime', default=request.now),
>>     Field('updated', 'datetime', compute=now)
>> )
>>
>> Any ideas?
>>
>> Richard

Reply via email to