Thanks a lot Marin :) , It worked fine with me.
On Jun 12, 12:11 pm, Marin Pranjic <[email protected]> wrote: > 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 <[email protected]> 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

