We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a cosmetic suggestion:
config.add_route('num', '/{num}', custom_predicates=(num_one_two_or_three,))
repeated 'num' makes little confusing for beginners when try to understand the example. num_one_two_or_three = any_of('num', 'one', 'two', 'three').
would be good if route name is different than segment_name.
config.add_route('route_num', '/{num}', custom_predicates=(num_one_two_or_three,))
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html#custom-route-predicates
The text was updated successfully, but these errors were encountered:
Closed by 7edede0
Sorry, something went wrong.
Thank you, fixed!
No branches or pull requests
a cosmetic suggestion:
config.add_route('num', '/{num}', custom_predicates=(num_one_two_or_three,))
repeated 'num' makes little confusing for beginners when try to understand the example.
num_one_two_or_three = any_of('num', 'one', 'two', 'three').
would be good if route name is different than segment_name.
config.add_route('route_num', '/{num}', custom_predicates=(num_one_two_or_three,))
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html#custom-route-predicates
The text was updated successfully, but these errors were encountered: