On Thursday, February 7, 2013 10:36:01 AM UTC-5, Annet wrote:
>
> Hi Denes,
>
> I'd like to use your solution to replace the 2009 one I am using right 
> now. However, put these lines of code in db.py
>
>
>
> script=SCRIPT('jQuery(document).ready(function(){jQuery("input.mytime").timeEntry({showSeconds:false});});')
> timewidget=lambda field,value: TAG[''](SQLFORM.widgets.time.widget(field, 
> value.strftime('%H:%M') if value else '', _class='mytime'),script)
>
> istime = dict(type='time',requires=IS_TIME(error_message=T('no match 
> HH:MM')),widget=timewidget,comment=T('Format HH:MM'))
>
> Field('startTime',**istime),
> Field('endTime',**istime),
>
>
> I no longer get the error message when a user enters for example 09: so 
> only the hours not the minutes. How would I have to adjust your code to 
> validate the time?
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to