This is a educated guess but I think you can only have one requires,
when you write two the second is used. So if you put IS_NOT_EMPTY last
web2py only uses that one, and that alone is not enough for web2py to
build a dropdown.
IS_IN_DB takes out the need for IS_NOT_EMPTY as the value has to be in
the database it can´t be empty.
Kenneth
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?
do i need the IS_NOT_EMPTY() if i have IS_IN_DB validator?
andrej