[Grok-dev] five.grok and page templates

Wichert Akkerman wichert at wiggy.net
Mon Aug 4 03:13:19 EDT 2008


Previously Martin Aspeli wrote:
> Hi,
> 
> With a lot of help from Philipp, I made five.grok use 
> Products.Five.browser.pagetemplatefile.ViewPageTemplateFile today. This 
> is necessary to make it work with Plone, and I presume other code that 
> makes "Zope 2" assumptions as well, e.g. the user of 'here' or reliance 
> on Five's provider: expression support.
> 
> We made this work by overriding the ITemplateFileFactory for the '.pt' 
> extension from grokcore.view and implementing a ZopeTwoPageTemplate 
> that extends PageTemplate and uses a ViewPageTemplateFile in 
> setFromFilename(). We also overrode render() to do some aq wrapping and 
> call the template in a different way.

Have you checked if this still works with z3c.jbot? That should be a
requirement before using something like this in Plone.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Grok-dev mailing list