[Grok-dev] PageTemplateFile('path/to/template.cpt') does not work anymore
cklinger at novareto.de
Mon May 7 09:45:43 UTC 2012
the baseclass is now
ChameleonPageTemplateFile instead of PageTemplateFile
Jan-Wijbrand Kolman schrieb:
> With the new release of grokcore.chameleon it seem the following pattern
> does not work anymore:
> from grokcore.chameleon.components import PageTemplateFile
> class MyView(grok.View):
> template = PageTemplateFile('templates/mytemplate.cpt')
> I guess this is because the template baseclasses in z3c.pt are not used
> anymore as such in grokcore.chameleon?
> Anyone an idea? I'll look into it as well now...
> regards, jw
More information about the Grok-dev