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

Jan-Wijbrand Kolman janwijbrand at gmail.com
Mon May 7 10:21:04 UTC 2012


On 5/7/12 12:06 , Jan-Wijbrand Kolman wrote:
> On 5/7/12 11:51 , Uli Fouquet wrote:
>> 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)?
> 
> I agree. To what extent is the PageTemplate(File) useful in itself?
> 
> In other words, why is there *both* a PageTemplate(File) *and* a
> ChameleonPageTemplate(File).
> 
> I'd rather have just a PageTemplate(File) component. The package is
> enough of a prefix to understand it is a chameleon-based template.
> 
> I could do that right now, as I'm fixing code in our applications
> regarding this issue anyway...

Furthermore, AFAICT, the ChameleonPageTemplate(File) components do not
have a __call__ anymore, where I think we're used to the pattern of
calling a template to have it rendered.

regards, jw




More information about the Grok-dev mailing list