On 6/3/09 12:44 PM, Stephan Altmueller wrote:
> Hi Chris,
> Thank you for your amazingly fast response.
> Indeed your example works as described.
> After digging deeper I figured that my
> problem is caused by adding the "root" route to the configure.zcml:
>    <route
>      path=""
>      name="root"
>      view=".views.root_view"
>      />
> Everything else is identical to your example and "root_view" is a
> copy of "my_view" from your previous email.
> When I add the root route the routes, I get either "/" or "/buckets"
> for both routes depending on their order configure.zcml.

Sure enough, this is a bug.  Thanks for reporting it; I'm not entirely sure 
the best way to fix it is.

In the meantime, you can use routes.url_for:

return routes.url_for("buckets", **context.__dict__)

- C

Repoze-dev mailing list

Reply via email to