Hi I'm using traversal in my pyramid app. on a view i want to redirect to another resource(i.e. root). so i want to get location with request.resource_url(): @view_config(context=Users, renderer="json") ...
url = request.resource_url(find_root(context)) but the generated url has two problem: http://0.0.0.0:6543root/ 1. i have no trailing slash at the end of app_url. 2. i think 'root' word shouldn't be added to the url because the "http://0.0.0.0:6543" is actually root url. right? I'v tested resource_url for other resources too, but all generated urls have the same problems. it gives me something like "http://0.0.0.0:6543root/users" or "http://0.0.0.0:6543root/orders"... So where is the problem? why pyramid doesn't add trailing slash to the app_url? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
