The format can be a function that takes a record and return a string. You can use lambda.
On Nov 25, 4:06 am, Mirek Zvolský <zvol...@seznam.cz> wrote: > Hi Annet, > thank you very much for your help. > I have used notes from your log and all works excellent. > > However at this time I need to do such translation in 3-rd parameter > of IS_IN_DB(...): > IS_IN_DB(db, 'lesson.id', '%(start)s') > ...with field name (start) this works fine, but when I try to use any > expression (something like db.lesson.start.formatter(lesson.start)), I > receive an error always... > > > Have a look at this post: > >http://groups.google.com/group/web2py/browse_thread/thread/a7e9e4dc8b... > >