Just use:
SQLField('field_name', requires = IS_IN_SET(['val1', 'val2'])
Michal
Álvaro Justen [Turicas] wrote:
> Is there a way to create ENUM() fields in database or I have to create
> a string field and do some verification?
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---