[web2py] Re: how get the set/tuple from the DAL requires of IS_IN_SET

2017-01-05 Thread Anthony
On Thursday, January 5, 2017 at 9:59:18 PM UTC-5, Anthony wrote: > > db.dictionary.type.requires.theset > Note, the above actually gives you back [str(item) for item in the_original_set]. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Re: how get the set/tuple from the DAL requires of IS_IN_SET

2017-01-05 Thread Anthony
db.dictionary.type.requires.theset Anthony On Thursday, January 5, 2017 at 6:12:21 PM UTC-5, lucas wrote: > > hey one and all, > > say there is this: > > db.define_table('dictionary', > Field('word', length=32, requires=IS_NOT_EMPTY()), > Field('type', leng