Michael Hierweck schreef:
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.
Yes, you see them all over the place and they work well.
Right until you want to customize it. Easiest would be to just copy the
original zcml (perhaps change relative dotted paths to absolute ones)
and to change the template your customized one.
Doesn't work with all that "render =.....".
Standard reply: "that will never need to be customized". That's the same
as "my dog never bites someone, don't worry" (and the accompanying "hey,
he's never bitten someone before!").
Reinout
--
Reinout van Rees Blog: http://vanrees.org/weblog/
[EMAIL PROTECTED] Work: http://zestsoftware.nl/
http://vanrees.org Video: http://reinout.blip.tv/
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers