Hi,

sorry i was to hasty posting my problem. The easiest way to solve this 
problem is to change:
db.mytable.options_1.requires = [IS_IN_SET(['option_1', 'option_2', 
'option_3', 'option_4', 'unknown'], zero = None)] 
into:
db.mytable.options_1.requires = [IS_IN_SET({'option_1' : 'Option 1', 
'option_2' : 'Option 2', 'option_3 : 'Option 3'', 'option_4' : 'Option 4', 
None: 'unknown'}, zero = None)]

documentation:
IS_IN_SET({'id1':'first label', 'id2':'second label'})('id1')
http://web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_IN_SET-class.html

thanks
max

Reply via email to