I believe you want: options=[x for x in ['google','multimap','yahoo'] if not db (db.gis_key.sevice==x).count()] db.gis_key.service.requires=IS_IN_SET(options)
Massimo On Dec 1, 6:36 pm, mdipierro <[EMAIL PROTECTED]> wrote: > A list of validators will not give you a dropdown. These will: > > db.gis_key.service.requires=IS_IN_SET(['google','multimap','yahoo']) > > db.gis_key.service.requires=IS_NOT_IN_DB(db,'gis_key.service') > > Massimo > > On Dec 1, 6:17 pm, Fran <[EMAIL PROTECTED]> wrote: > > > > did you set requires=IS_IN_DB(....) without the [ ] ? > > > db.gis_key.service.requires=[IS_IN_SET > > (['google','multimap','yahoo']),IS_NOT_IN_DB(db,'gis_key.service')] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

