Re: routes with class based view

2013-06-04 Thread wilk
On 04-06-2013, Chris McDonough wrote: > On Tue, 2013-06-04 at 13:22 -0700, John Anderson wrote: >> >> >> >> On Tue, Jun 4, 2013 at 1:12 PM, wilk wrote: >> On 03-06-2013, tonthon wrote: >> > Hi, >> > >> > you can also use inline view declaration in place of >>

Re: routes with class based view

2013-06-04 Thread Chris McDonough
On Tue, 2013-06-04 at 13:22 -0700, John Anderson wrote: > > > > On Tue, Jun 4, 2013 at 1:12 PM, wilk wrote: > On 03-06-2013, tonthon wrote: > > Hi, > > > > you can also use inline view declaration in place of > decorators: > > > > config.a

Re: routes with class based view

2013-06-04 Thread John Anderson
On Tue, Jun 4, 2013 at 1:12 PM, wilk wrote: > On 03-06-2013, tonthon wrote: > > Hi, > > > > you can also use inline view declaration in place of decorators: > > > > config.add_route('p1', '/p1') > > config.add_view(Main, route_name='p1') > > > > Combining this with the __import__ tool, you may ac

Re: routes with class based view

2013-06-04 Thread wilk
On 03-06-2013, tonthon wrote: > Hi, > > you can also use inline view declaration in place of decorators: > > config.add_route('p1', '/p1') > config.add_view(Main, route_name='p1') > > Combining this with the __import__ tool, you may achieve your goal quite > easily. Yes, i can do that, i'll make a

Re: routes with class based view

2013-06-03 Thread tonthon
Hi, you can also use inline view declaration in place of decorators: config.add_route('p1', '/p1') config.add_view(Main, route_name='p1') Combining this with the __import__ tool, you may achieve your goal quite easily. View configuration docs : http://pyramid.readthedocs.org/en/latest/narr/view

routes with class based view

2013-06-03 Thread wilk
Hi, I use my own framework since more than ten years and see now that it's very similar with pyramid, of course with a lot less features. Now i would like to use a community framework to can share my web applications and stop to reinvent te wheel (wheel that did not exists when i began...). M