[web2py] Re: redirect and decorators

2010-05-18 Thread mdipierro
simply the action has to be a string, not a function or the function gets serialized with its name. in def foo(): pass foo gets serialized as 'foo' in @auth.requires_login() def foo(): pass foo gets serialized as 'foo' in 1.78.x but not in previous versions. On May 18, 2:32 am, Robert Boulang

Re: [web2py] Re: redirect and decorators

2010-05-18 Thread Robert Boulanger
Hi, that works, thanks. I still don't understand the behaviour, but I will have a look deeper inside to find that out. -Robert Am 18.05.2010 um 00:13 schrieb mdipierro: > This > > redirect(URL(r=request,f=foo)) > > should be > > redirect(URL(r=request,f='foo')) > > > On May 17, 4:00 pm,

[web2py] Re: redirect and decorators

2010-05-17 Thread mdipierro
This redirect(URL(r=request,f=foo)) should be redirect(URL(r=request,f='foo')) On May 17, 4:00 pm, Robert Boulanger wrote: > hi, > > I have the following issue: > > @auth.requires_membership('admin') > def foo(): >     form=FORM(blah some code here) >     if form.accepts(request.vars, sessi