On Jan 1, 11:18 pm, "sudhakar m" <[email protected]> wrote:
> In Gae, we can specify the choices when creating the stringproperty.
> *  phone_type = db.StringProperty(
>     choices=('home', 'work', 'fax', 'mobile', 'other'))

db.table.field.requires=IS_IN_SET('home', 'work', 'fax', 'mobile',
'other')

Produces a dropdown in forms & does back-end validation as well (if
using SQLFORM or T2)

F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to