I have a situation where the "set' in IS_IN_SET(set) is dynamic, and 
sometimes will be empty in:

form = SQLFORM.factory(
Field("value", type='string', label=field_name, default=value, 
requires=IS_IN_SET(set)),
... more fields ...
)

I would expect that if 'set' is empty, this would always fail validation. 
However, this one allows saving an empty value.

How could I make it to always fail validation if the set is empty?

Thank you.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to