I was trying to figure out how I could have:
/path/to/section
/path/to/section/{paginated:\d+}
work for the same function
this worked:
config.add_route(user::list, /users/list)
config.add_route(user::list_paginated, /users/list/{page:\d+})
@view_config(route_name=user::list)
Routes are not coupled to views, so the docs are just in view configuration atm.
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/viewconfig.html#view-config-placement
On Wed, Apr 18, 2012 at 2:48 PM, Jonathan Vanasco jonat...@findmeon.com wrote:
I was trying to figure out how