The 'time' fields have a JS time picker. If you choose to do

  db.table.field.requires.formatter=lambda v: v.strftime('%H-%M')
instead of
  db.table.field.requires.formatter=lambda v: v.strftime('%H:%M')

the time picker would not recognize it as valid time. Why would
anybody change the time format?

On Mar 12, 6:28 am, DenesL <[email protected]> wrote:
> On Mar 11, 5:29 pm, mdipierro <[email protected]> wrote:
>
> > can you show an example and I will try?
>
> Never mind, form has to be recreated to include any changes.
>
> On Mar 11, 3:10 pm, mdipierro <[email protected]> wrote:
>
> > I do not know. The problem is that the JS may not work with other
> > formats.
>
> On the original problem with IS_TIME I tried the following and it does
> not seem to interfere with JS:
>
> db.table.field.requires.formatter=lambda v: v.strftime('%H:%M')
>
> Why do you say that the JS might not work?.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to