[Grok-dev] Traverser, Request and URL mess

Martijn Faassen faassen at startifact.com
Wed Oct 14 11:39:53 EDT 2009


Souheil CHELFOUH wrote:
[snip]
> This is what I wanted to acheive. The problem is, the request is the
> base of the URL generation and there's no way we can get it to return
> the URL with one or more namespace ignore.
> The mehod 'getApplicationURL' or 'getURL' are both using the
> '_app_names', which contains all the shifted namespaces and there's no
> way we can strip it off when computing an URL.
> This is very annoying, it doesn't allow flexible URL computation. I
> don't really know what would be a proper way to implement what you
> propose and what I thought of. If anyone has experience in
> manipulating the request for such purposes, please, enlight us ! :)

I think parsing the generated URL and messing around with the ++..++ 
bits might be all right in this case. Manipulating the request seems 
scary to me as it might break subsequent URL generations.

Or is there a problem I don't see? I thought we could do this within 
view.url() and grok.url().

Regards,

Martijn



More information about the Grok-dev mailing list