[Product-Developers] Re: Where does it hurt?

Michael Hierweck team at edv-serviceteam.net
Mon May 19 08:41:51 UTC 2008

Reinout van Rees wrote:
> Martin Aspeli schreef:
>>  - Areas where there appears to be more than one approach, and it's
>> not clear which one to choose
> Hooking templates up with views. I scream and curse every time someone
> puts a hardcoded ZopePageTemplateFile('myhardcodedname.pt') in code. I
> had to *monkeypatch* plone.app.content to wire in a different template
> to render the folder listing (order of columns had to be different).

Up to now I thought statements like

render = ViewPageTemplateFile("xyz.pt")
__call__ = ViewPageTemplateFile("xyz.pt")

as if found them in Plone 3 for Viewlets and Portlets and other
resources were good, modern style and best practice.

> If we're going to be buried in zcml, please also use it for the places
> where it is actually useful. Like the 'template' attribute so that you
> can override it.

How to make it better/more configurable?


More information about the Product-Developers mailing list