Hi, In the wiki tutorial ( https://github.com/Pylons/pyramid/blob/master/docs/tutorials/wiki2/src/authorization/tutorial) , the __init__.py first defines routes names with add_route, then associates views to routes with add_view.
First, it looks like there is a mismatch with the documentation found here: http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/wiki2/definingviews.html, where __init__.py only contains config.add_route() methods with a "view=" field. Now in the documentation ( http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html), the only reference to dissociating add_route and add_view in the urldispatch section is in an example ( http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html#example-4 ). As a pyramid newbie, I would have preferred to see the two times configuration first, immediately followed by a note showing the syntactic sugar and explaining why the simplified form is preferred and when we need to dissociate route creation and view matching (if ever need). But maybe it only fits better to my tortured mind and not in the general case ;) Cheers, -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
