Johann, Manuele and Massimo,

Thanks for answering my question.

You're right, the problem was somewhere else, in the line before 
db.Node.createdOn.represent

db.Node.createdOn.requires=IS_DATETIME(str(T('%Y-%m-%d %H:%M:%S')))

This saves without problem:

db.Node.createdOn.requires=IS_DATETIME(format='%Y-%m-%d %H:%M:%S')
db.Node.createdOn.represent = lambda v, row: v.strftime('%d/%m/%Y') 

I don't know what's wrong with the first IS_DATETIME() validator.


Kind regards,

Annet

Reply via email to