Massimo, can you teach me what the proper way to submit a patch is? -Thadeus
On Mon, Oct 12, 2009 at 4:50 PM, Thadeus Burgess <thade...@thadeusb.com>wrote: > K this seems to fix it. > > It inserts None into database if nothing is selected. It seems to work > fine, using appadmin on inserted blank records displays a form with nothing > selected, and you can select and it will update correctly, you can also > remove all selections, and it will set back to None. > > here is pastebin: http://pastebin.com/m6da6fdef > > -Thadeus > > > > > > On Mon, Oct 12, 2009 at 3:03 PM, Thadeus Burgess <thade...@thadeusb.com>wrote: > >> Working on it right now. >> >> -Thadeus >> >> >> >> >> >> On Mon, Oct 12, 2009 at 12:39 PM, mdipierro <mdipie...@cs.depaul.edu>wrote: >> >>> >>> I would take a patch in the checkboxes widget to do this. >>> >>> Massimo >>> >>> On Oct 12, 12:28 pm, Fauché JM <jm.fau...@free.fr> wrote: >>> > Hello! >>> > I think I have the same problem,I have a checkboxes and if user don't >>> > make any choice (he just submit) the message "Value not allowed" >>> > appear... >>> > >>> > here is a part of code: >>> > >>> > form=SQLFORM.factory(SQLField('Postulants',requires=IS_IN_SET(liste_id, >>> > (liste_postulants),multiple=True), >>> > widget=SQLFORM.widgets.checkboxes.widget)) >>> > >>> > if form.accepts(request.vars,session): >>> > ...do this and this... >>> > redirect(URL(r=request,f='listes')) >>> > >>> > of course I can complete by : >>> > >>> > if form.errors: >>> > redirect(URL(r=request,f='listes')) >>> > return dict(form=form) >>> > >>> > and it work ; but is there a more élégant way do do this ? >>> > Thanks >>> >>> >>> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---