Re: Add_route as a decorator

2012-04-04 Thread clemensherschel
We're going to be in CT Fri thru monday. Do you want to visit? On 4/4/2012 9:20 AM, Jason wrote: On Tuesday, April 3, 2012 8:10:35 PM UTC-4, Zak wrote: Instead of using something like config.add_route('Index', '/') in my main, I want to add a route as a decorator which will be posi

Re: Add_route as a decorator

2012-04-04 Thread Jason
On Tuesday, April 3, 2012 8:10:35 PM UTC-4, Zak wrote: > > Instead of using something like config.add_route('Index', '/') in my main, > I want to add a route as a decorator which will be positioned next to the > relevant view. Something like > > @view_addRoute(route'="/index") > @view_config(ro

Add_route as a decorator

2012-04-03 Thread Zak
Instead of using something like config.add_route('Index', '/') in my main, I want to add a route as a decorator which will be positioned next to the relevant view. Something like @view_addRoute(route'="/index") @view_config(route_name='Index', renderer='MyApp:html/compiled/index.mako') class