Yes, that is what I meant. I was pointing out that the docs generally set one route for the class View before the class declaration. So for a numb skull like me, that means that the View only has one route. Was just pointing out how some of us can misinterpret the documentation.
On Monday, September 2, 2013 10:53:15 AM UTC-6, Mike Orr wrote: > > On Sun, Sep 1, 2013 at 9:40 PM, Roberto Guerra > <[email protected]<javascript:>> > wrote: > > For example, class-based views, I still don't grok it. If you are > > coming from Rails, for example, you can have multiple routes inside a > 'class > > view', but in Pyramid it appears that you can only have one route per > class > > view. > > You can have multiple routes per view like this: > > class View(object): > @view_config(route_name="route1", renderer="template1")) > @view_config(route_name="route2", renderer="template2") > def index(self): > return {} > > @view_config(route_name="route3", renderer="template3") > def help(self): > return {...} > > If that's not what you mean by "multiple routes inside a class view", > then I don't understand the question. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
