OPS..... thanks
Il giorno sabato 23 febbraio 2013 16:43:17 UTC+1, Massimo Di Pierro ha scritto: > > You are doing it twice. The same call always fails. > > if request.args(0)>0: > ... > else: > form=SQLFORM(db.Nominativi).*process*() > .... > if form.*process*().accepted: > ... > > On Saturday, 23 February 2013 07:27:11 UTC-6, Ivan Gazzola wrote: >> >> I've the action nominativo, that works. >> When i add the if condition for checking form.process().accepted (is the >> code from >>>> to <<<<<) the form submit data but don't accept the >> variables. Any idea???? >> I need the conditional for redirection after form submission .... >> >> def nominativo(): >> response.menu=[] >> response.title=XML("""<input type="search" name="search" >> id="cerca_nominativo" value="" />""") >> if request.args(0)>0: >> >> form=SQLFORM(db.Nominativi,db.Nominativi(request.args(0))).process() >> pulsante='Modifica' >> icona='refresh' >> messaggio='Modificato' >> else: >> form=SQLFORM(db.Nominativi).process() >> pulsante='Inserisci' >> icona='plus' >> messaggio='Inserito' >> >>>> >> if form.process().accepted: >> response.flash = T("fatto!") >> <<<< >> return dict(form=form, pulsante=pulsante,icona=icona) >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.