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

Uli Fouquet uli at gnufix.de
Mon May 7 09:51:54 UTC 2012


Hi Christian and JW,

On Mon, 07 May 2012 11:45:43 +0200 Christian Klinger wrote:

> the baseclass is now
> 
> ChameleonPageTemplateFile instead of PageTemplateFile

Wouldn't it make sense to offer `PageTemplateFile` as a shortcut as well
(additionally)?

Best regards,

-- 
Uli

> 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
> 
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://mail.zope.org/pipermail/grok-dev/attachments/20120507/85fc2c0d/attachment.sig>


More information about the Grok-dev mailing list