On Wed, Nov 3, 2010 at 9:10 PM, Branko Vukelic wrote:
> 2010/11/3 Kenneth Lundström :
>> 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.
>
> IS_THAT_TRUE? Because, I know for sure there's a use-case for
>
> IS_EMPTY_OR(IS_IN_DB())
>
> I
2010/11/3 Kenneth Lundström :
> 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.
IS_THAT_TRUE? Because, I know for sure there's a use-case for
IS_EMPTY_OR(IS_IN_DB())
I've used the above pattern a lot in a web.py app I've recently
crea
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 b
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?
andre
4 matches
Mail list logo