I think they are working. You need to set IS_IN_SET(...,zero=None)
If not, web2py gives you a radio option that means "none of the above". It shows as blank because suggested blank looks better when using a dropbox instead of radio widgets. On Jan 18, 9:48 am, Thadeus Burgess <thade...@thadeusb.com> wrote: > Radio buttons are not working correctly. > > IS_IN_SET() > > and > > IS_IN_DB() > > are effected. > > They are placing a blank option at the top. > > -Thadeus > > On Mon, Jan 18, 2010 at 1:47 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > On Jan 17, 7:06 pm, Jeff Bauer <jba...@rubic.com> wrote: > >> On 01/17/2010 03:27 PM, mdipierro wrote: > > >> > I have rewritten some of the code that deals with dropdowns, in trunk. > >> > In particular now you can do > > >> > IS_IN_SET(...,sorted=True) > >> > IS_IN_DB(...,sorted=True) > >> > IS_EMPTY_OR(IS_IN_SET(...,sorted=True)) > >> > IS_EMPTY_OR(IS_IN_DB(...,sorted=True)) > > >> > If your app uses a lot of dropdowns please check nothing is broken by > >> > this change and let us know. > > >> IS_IN_SET works, except problems reported earlier > >> with SQLFORM.widgets.checkboxes.widget. (I haven't > >> gotten around to looking into it like I said I would.) > > > Should be fixed. Arent' they? > > >> IS_IN_DB works, except I can't still use it to enforce > >> a one-to-one relation: > > >> db.diag.soc.requires = IS_IN_DB(db, 'soc.id', > >> _and=IS_NOT_IN_DB(db, 'diag.soc')) > > >> > we also have > > >> > IS_DATE_IN_RANGE(minimum,maximum,error_message) > >> > IS_DATETIME_IN_RANGE(minimum,maximum,error_message) > > >> > please check them out. > > >> I have a use for IS_DATE_IN_RANGE and will try it out > >> tomorrow. > > >> Jeff Bauer > >> Rubicon, Inc. > > > -- > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to web...@googlegroups.com. > > To unsubscribe from this group, send email to > > web2py+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/web2py?hl=en. > > > > is_in_set not fixed.png > 20KViewDownload > > checkboxes ok.png > 13KViewDownload
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.