Bill is correct. There is no options in SELECT and IS_IN_SET.options is not called by select. It is called only by the constructor of SQLFORM in gluon/sqlhtml.py. You can call it explicitly:
db.table.field.requires=IS_IN_SET(['a','b','c']) SELECT(*[OPTION(v,_value=k) for k,v in db.table.field.requires.options ()]) On Dec 1, 2:40 am, billf <[EMAIL PROTECTED]> wrote: > What version are you using? I don't have a a SELECT.options() method > in my source?! > > I just have options() methods in the IS_IN_SET and IS_IN_DB > validators. > > On Dec 1, 8:06 am, voltron <[EMAIL PROTECTED]> wrote: > > > Hi Massimo, > > > I was unable to track down when the "options()" function is called/ > > used in the HTML SELECT helper. Can you enlighten me? I know what is > > for, I just would like to know when and at which poit it is called. > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

