[Grok-dev] Re: Computing URLs relative to the application

Martin Aspeli optilude at gmx.net
Tue Apr 3 16:39:49 EDT 2007


Philipp von Weitershausen wrote:
> Hey there,
> 
> I find it a very common requirement to compute URLs relative to the 
> grok.Application object. I'm inclined to introduce an application_url() 
> method on grok.View.
> 
> Thoughts?

+1, this is very common in Plone as well where we have a $portal_url 
globally in the template namespace.

Martin



More information about the Grok-dev mailing list