On Tuesday, February 9, 2016 at 5:10:03 PM UTC-8, Winter Kryz wrote:
>
> Thanks for the answers
> I tried what xmarx said but it didn't work
>
What errors did you get?
> How would I use it with IS_IN_SET?
>
>
nationalities=['United States',"United Kingdom","France",'Germany']
db.define_table('Person',
Field('last_name', 'string'),
Field('name', 'string'),
Field('telephone', 'string'),
Field('email', 'string'),
Field('nationality', requires=IS_IN_SET(nationalities),
default='United States')
format= '%(last_name)s,%(name)s '
)
(Not tested)
/dps
--
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.