>
> requires=IS_IN_SET([('Allowed', T('Allowed')), ('Not allowed', T('Not 
> allowed'))])
>

another way around to achieve it is
requires = IS_IN_SET({T('Allowed'), T('Not allowed') } )

p.s.
please ensure if you use translate version in the conditional logic (if), 
please also put the translation on it. e.g.

if db.employee.access == T('Allowed'):

if you don't put the translation (T()) in the conditonal, the result always 
return false, because the data in table is in translate version, yet you 
compare it with non translate version.

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to