flask-classy icon indicating copy to clipboard operation
flask-classy copied to clipboard

Decorator chain using explicit arguments

Open iartarisi opened this issue 9 years ago • 2 comments

If one of the decorators in the chain of a method's decorators specifies (at least one) of its parameter names explicitly, classy fails to build a correct route for it. The get_true_argspec function will stop at that decorator because it has found that its first argument is self.

This pull request contains a failing test which points out the issue. I haven't figured out a fix yet.

iartarisi avatar Aug 31 '15 22:08 iartarisi

I have now found a solution to this and packaged it in the undecorated library on pypi. I have added a commit which uses it to fix the broken test case.

iartarisi avatar Feb 20 '16 17:02 iartarisi

@apiguy can you check this?

auvipy avatar Oct 25 '16 17:10 auvipy