flask-classy
flask-classy copied to clipboard
Decorator chain using explicit arguments
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.
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.
@apiguy can you check this?