I am using url dispatch with Pyramid (I came from Pylons).
Is there any way to generate a route path without the request?
I am using Formalchemy and need to have a link in a custom fieldset
(FieldSets are instantiated on startup as it is the best practice for
Formalchemy), but there is no request
On Wed, 2011-05-18 at 09:24 -0700, Landreville wrote:
I am using url dispatch with Pyramid (I came from Pylons).
Is there any way to generate a route path without the request?
I am using Formalchemy and need to have a link in a custom fieldset
(FieldSets are instantiated on startup as it is
On May 18, 2:05 pm, Chris McDonough chr...@plope.com wrote:
Elements of the generated URL are taken *from* the request (e.g. the
hostname), so, no, there is no way to use route_url without a request.
You can create a request by hand using pyramid.request.Request.blank()
if you need to.
- C
The registry is also embedded in the request, and is required for pyramid to
find the list of routes... thus a pyramid request object is required to
generate the paths as well.
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this