thanks. i just needed someone to say "yeah, you can/should do that!"

On Apr 18, 4:00 pm, Michael Merickel <[email protected]> wrote:
> 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/vie...
>
>
>
>
>
>
>
> On Wed, Apr 18, 2012 at 2:48 PM, Jonathan Vanasco <[email protected]> 
> wrote:
> > 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 
> > athttp://groups.google.com/group/pylons-discuss?hl=en.

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