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

docs: Custom route predicates #125

Closed
gsjn opened this issue Feb 10, 2011 · 2 comments
Closed

docs: Custom route predicates #125

gsjn opened this issue Feb 10, 2011 · 2 comments

Comments

@gsjn
Copy link

gsjn commented Feb 10, 2011

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

@mcdonc
Copy link
Member

mcdonc commented Mar 3, 2011

Closed by 7edede0

@mcdonc
Copy link
Member

mcdonc commented Mar 3, 2011

Thank you, fixed!

This issue was closed.
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

2 participants