Re: [web2py] ORing between validators

2011-06-12 Thread Marin Pranjic
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 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 ex

[web2py] ORing between validators

2011-06-12 Thread Neveen Adel
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