On Wednesday February 11, 2009 16:46:08 binet bruno wrote:
> I get the same error with v1.0b2... :(
Now that I re-read your first message, I realize that indeed it's not the same
issue I fixed today (it's just related).
> I look at protectors.py code, and you still don't use module decorator
> which preserve the signature. Why don't you use it, as it is done by
> other pylons built-in decorators?
+1, I'll do it, hopefully today.
> 2009/2/11 Gustavo Narea <m...@gustavonarea.net>:
> > Hello, Bruno.
> > That's right, today I released v1.0b2 to fix it.
> > Please upgrade and let me know if now it works for you.
> > Cheers!
> > On Wednesday February 11, 2009 16:32:09 binet bruno wrote:
> >> Hi.
> >> I am currently testing the new repoze.what plugin for pylons (
> >> http://wiki.pylonshq.com/display/pylonscookbook/Authorization+with+repoz
> >>e.w hat )
> >> But an error occured when
> >> repoze.what.plugins.pylonshq.ActionController is decorating my index
> >> action of my main controller :
> >> TypeError: index() got an unexpected keyword argument 'action'
> >> Here is the traceback :
> >> http://beta.pylonshq.com/tracebacks/5ea1b0dab9e46b046bb516cff61a5c50
> >> After submitting my issue to pylons irc channel, Jon Rosebaugh told me
> >> it's a bug in repoze.what's plugin related to decorators and routing.
> >> Here is its investigation :
> >> Specifically, Pylons and Routes inspects the controller action to see
> >> what parameters it takes. The current plugin decorator destroys the
> >> action's signature and makes it look like it takes *args, **kwargs,
> >> when actually it does not. So, they should use the decorator module
> >> (http://pypi.python.org/pypi/decorator/) to preserve signature.
> >> Cheers,
> >> Bruno
> >> _______________________________________________
> >> Repoze-dev mailing list
> >> Repozeemail@example.com
> >> http://lists.repoze.org/listinfo/repoze-dev
> > --
> > Gustavo Narea <http://gustavonarea.net/>.
> > Get rid of unethical constraints! Get freedomware:
> > http://www.getgnulinux.org/
Gustavo Narea <http://gustavonarea.net/>.
Get rid of unethical constraints! Get freedomware:
Repoze-dev mailing list