Hi Denes,
to make the widget safer we could do:
>
> timewidget=lambda field,value: TAG[''](SQLFORM.widgets.time.widget(field,
> value.strftime('%H:%M') if hasattr(value,'strftime') else '',
> _class='mytime'),script)
>
Thanks, this solves the problem of getting an error ticket when the user
enters 09: and submits the form, the form now displays the error_message.
> but I still don't understand how you can submit a value of 09:
> that input is just not possible.
> Are you sure that jQuery.timeEntry is working?.
>
I am almost sure jQuery.timeEntry is working, because, when I enter 09, it
allows the value and adds :00, so the value entered into the database is
09:00.
It's just 09: that's caused a problem, but the safer widget solves it.
Thanks,
Best regards,
Annet
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.