Re: add_route and view_attr

2011-04-11 Thread Eric Lemoine
On Thu, Apr 7, 2011 at 8:20 PM, Michael Merickel mich...@merickel.org wrote: To solve your problem you probably just need to remove the view_attr from add_route and call config.scan(). The problem here is the ambiguity in add_route because it supports routes and the ability to add a single

add_route and view_attr

2011-04-07 Thread Eric Lemoine
Hi I have view class defined as follows: class Entry(object): def __init__(self, request): self.request = request self.debug = debug in request.params lang = request.params.get(lang, request.registry.settings.get(default_locale_name))

Re: add_route and view_attr

2011-04-07 Thread Eric Lemoine
route_name to bind the route to the view_config at config.scan time. But it doesn't work when specifying a view_attr in add_route. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http

Re: add_route and view_attr

2011-04-07 Thread Michael Merickel
To solve your problem you probably just need to remove the view_attr from add_route and call config.scan(). The problem here is the ambiguity in add_route because it supports routes and the ability to add a single view. Rather add_view and view_config are identical except that view_config