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")
@view_config(route_name="user::list::paginated")
def focus_list(self):
        pass



based on my understanding of pyramid, this is correct and the right
way to accomplish this task.

BUT there's no mention of using multiple view_configs on the routing
documentation.  it is only mentioned elsewhere.

can someone please confirm this is what i should be doing ( or slap me
on the wrist and offer a better solution ?)

-- 
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.

Reply via email to