Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urls resolving to the wrong methods #18

Open
bdeggleston opened this issue Feb 28, 2013 · 2 comments
Open

urls resolving to the wrong methods #18

bdeggleston opened this issue Feb 28, 2013 · 2 comments
Assignees

Comments

@bdeggleston
Copy link

if I define two classes and methods with the same class names and method names, but are in different files with different urls in the route decorator, requests for one method will be erroneously routed to the wrong class

#app.module1
class SomeView(FlaskView):

    @route('/some/view')
    def do_something_cool(self):
        return response.success('123')
#app.module2
class SomeView(FlaskView):

    @route('/some/other/view')
    def do_something_cool(self):
        return response.success('456')

If I hit the url /some/view, it will call the route /some/other/route

@ghost ghost assigned apiguy Feb 28, 2013
@apiguy
Copy link
Owner

apiguy commented Feb 28, 2013

Interesting. I presume that the endpoints used by url_for will be similarly corrupted. I'll write a test case up and see if I can't get a fix out for this.

@Sohair63
Copy link

Sohair63 commented Oct 2, 2014

Is this issue is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants