[web2py] Re: validators order

2010-11-10 Thread andrej burja
thank you it is too obvious to see that i made replacement of the validators :) On Nov 4, 10:24 am, DenesL wrote: > On Nov 3, 3:52 pm, andrej burja wrote: > > > hi > > > why is order of validators important? > > i have > > > db.tecaj.voditelj.requires=IS_NOT_EMPTY() > > db.tecaj.voditelj.require

[web2py] Re: validators order

2010-11-04 Thread DenesL
On Nov 3, 3:52 pm, andrej burja wrote: > hi > > why is order of validators important? > i have > > db.tecaj.voditelj.requires=IS_NOT_EMPTY() > db.tecaj.voditelj.requires=IS_IN_DB(db,'person.id','%(name)s') > > why does putting the IS_NOT_EMPTY() at the end doesn't produce > dropdown list? Your c

[web2py] Re: validators order

2010-11-03 Thread mdipierro
The oreder is important because validators are filters. requires=[A,B,C] input -> A -> B -> C -> database database -> ~C -> ~B ->~A -> output You get a dropdown if there is a single validator that has an options attribute. On Nov 3, 2:52 pm, andrej burja wrote: > hi > > why is order of valida