> > Any chance that I can do > > > db.mytest.person.requires=IS_NULL_OR(IS_ALPHANUMERIC(), IS_IN_DB(db, > > 'dogs.dog_name', > > '% > > (dog_name)s')) > > > where IS_IN_DB could also be IS_IN_SET. > > Not currently, IS_NULL_OR has two parameters: other (a validator) and > null (the value returned on null imput).
Not but you can do db.mytest.person.requires=[IS_ALPHANUMERIC(),IS_NULL_OR(IS_IN_DB (db,'dogs.dog_name', (dog_name)s'))] and I believe this is equivalent to what you want, except that it will not display the dropbox without creating a custom widget to handle it. Massimo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---