[Grok-dev] PageTemplateFile('path/to/template.cpt') does not work anymore

Christian Klinger cklinger at novareto.de
Mon May 7 09:45:43 UTC 2012


Hi JW,

the baseclass is now

ChameleonPageTemplateFile instead of PageTemplateFile

HTH
Christian

Jan-Wijbrand Kolman schrieb:
> Hi,
>
> 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 mailing list