First, note that IS_IN_SET requires an item in the set, so no need for IS_NOT_EMPTY with it. If you are using IS_IN_SET with multiple=True, then you are allowed to select zero items, but you can instead set multiple=(1, len(the_set)), and it will require at least one selection.
Also, even if the above were not the case, you wouldn't want IS_NOT_EMPTY_OR -- you would want something like IS_NOT_EMPTY_AND (i.e., you want the value to be non-empty *and* within your set). However, you can already do the latter by simply putting multiple validators in a list: [IS_NOT_EMPTY(), IS_IN_SET(...)]. Anthony On Sunday, May 8, 2016 at 12:51:23 PM UTC-4, [email protected] wrote: > > I would like to have a set that requires to be not empty. But looking at > the documentation there are no such thing as IS_NOT_EMPTY_OR like we have > for IS_EMPTY_OR. Any thoughts? > -- 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/d/optout.

