[web2py] Re: how to keep request when redirecting

2014-02-07 Thread NeoToren
Maybe capturing what you need in session.chkbox1, session.radio2, etc ? It should work while you move between views... On Sunday, February 2, 2014 12:21:44 PM UTC-5, aapaap wrote: > > hello, > > I've a form with checkboxes and radiobuttons. > All the checkboxes and radioboxes are auto-commit, i

Re: [web2py] Re: how to keep request when redirecting

2014-02-05 Thread Richard Vézina
Passing vars or args with redirect seems a better approach... Something like that # Controller form.process().accepted: ... redirect(URL(..., args=request.args(...), vars=dict(var_name=request.vars.var_name)) Richard On Wed, Feb 5, 2014 at 4:14 PM, Stef Mientki wrote: > thanks, > >

[web2py] Re: how to keep request when redirecting

2014-02-05 Thread Stef Mientki
thanks, I didn't know about "components" will study that in the near future. For the moment I've replcaed the url with a auto-commit-checkbox, so I'll stay on the same page/controller. cheers, Stef On 05-02-14 10:46, Tim Richardson wrote: redirect starts a new request. I suppose your redire

[web2py] Re: how to keep request when redirecting

2014-02-05 Thread Tim Richardson
redirect starts a new request. I suppose your redirect URL can contain args and vars based on what comes in (see docs on the URL function), and then it would be up to the redirected controller to process them. In other words, you pass state in the URL. Your controller or view could use these g