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

ValueError when trying to register controllers #12

Open
dfurtado opened this issue May 6, 2018 · 0 comments
Open

ValueError when trying to register controllers #12

dfurtado opened this issue May 6, 2018 · 0 comments
Assignees
Labels

Comments

@dfurtado
Copy link
Owner

dfurtado commented May 6, 2018

When registering routes in files in the controllers folder, an unhandled exception is thrown.

Traceback (most recent call last):
  File "app.py", line 6, in <module>
    app.init_routes(prefix_routes=True)
  File "/home/daniel/Projects/Personal/pyterrier/pyterrier/pyterrier.py", line 115, in init_routes
    self._route_discovery.register_actions(prefix_routes)
  File "/home/daniel/Projects/Personal/pyterrier/pyterrier/core/route_discovery.py", line 62, in register_actions
    actions = self._prefix_routes(controller, actions)
  File "/home/daniel/Projects/Personal/pyterrier/pyterrier/core/route_discovery.py", line 83, in _prefix_routes
    for route, verb, func in actions:
ValueError: too many values to unpack (expected 3)

The issue is related to the addition of an extra parameter additional_methods in the decorators get, post, put, delete and patch

@dfurtado dfurtado self-assigned this May 6, 2018
@dfurtado dfurtado added the bug label May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant