You can leave it empty and use onvalidation function:
http://web2py.com/book/default/chapter/07#onvalidation


On Sun, Jun 12, 2011 at 9:54 AM, Neveen Adel <nevo.a...@gmail.com> wrote:

> Hello,
>
>  I have a field in database that can accepts float numbers or time.
>
> so i need to have OR-ing between the following expression:
>
>  db.WO.cost_time.requires = [IS_MATCH(r'^\d*\.{0,1}\d+$') or
> IS_TIME()]
>
> How can i do this?
>
> Thanks in Advance

Reply via email to