Le 10/07/2011 17:39, Stéphane Klein a écrit :

I found the solution to fix all my issues :

config.add_route(
    "edit_page", "{traverse:.*}edit.html",
    traverse="*traverse"
)
config.add_view(
    edit_page_view,
    route_name="edit_page",
    context=Resource,
    renderer="edit_page.tmpl"
)

I think that document need to have « traverse="*traverse" » example.
It's difficult to found this tips without example. I've needed to launch
debug in pyramid source code to understand how this mechanism work.

Now, I've another issue with :

request.route_url("edit_page", traverse="foo/bar")

This return /foo%2Fbar%2Fedit.html

I try to avoid url_quote traverse value but not success.
I think it a pyramid bug.

Regards,
Stephane
--
Stéphane Klein <[email protected]>
blog: http://stephane-klein.info
Twitter: http://twitter.com/klein_stephane
pro: http://www.is-webdesign.com

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to