[web2py] IS_IN_SET syntax

2010-07-26 Thread sarsar
Hi all, Please help me with the syntax of dropdown selection , because i' ve read a lot of answers and sugestions, AND the book , and i cant find how to do this simple thing . db.candidate.for_language.requires=IS_IN_SET(['english','french','german']),default='english' using

Re: [web2py] IS_IN_SET syntax

2010-07-26 Thread Thadeus Burgess
db.candidate.for_language.requires = IS_IN_SET(['english', 'french', 'german'], zero=None) If you notice how web2py will put a blank option in the drop down? the zero attribute of IS_IN_SET or IS_IN_DB will control the value of that first dropdown option. To completely rid yourself of the bank