[Grok-dev] Re: Getting the application in views and viewlets
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Mon Jun 16 15:49:56 EDT 2008
Graham Stratton wrote:
> I seem to quite often need to get the application, or the application
> url, in views and viewlets.
>
> Views have the application_url method, but viewlets don't. I'd be
> tempted to suggest that both views and viewlets grow an `application`
> property.
>
> Do other people find this a common requirement, or is there something
> wrong with the way I'm developing applications?
I think your issues are addressed by my post just now [1] about the
jw-viewlet-fix branch and https://bugs.launchpad.net/grok/+bug/226555.
As a result of the fix for that bug, there is actually no need anymore
for having an (application_)url() method on the viewlets.
kind regards,
jw
[1] http://permalink.gmane.org/gmane.comp.web.zope.grok.devel/5348
More information about the Grok-dev
mailing list