[z3-five] (re)using zpt macros from view page templates
Philipp von Weitershausen
philipp at weitershausen.de
Tue Jan 30 16:19:58 CET 2007
Rocky Burt wrote:
> On Tue, 2007-30-01 at 15:24 +0100, Lennart Regebro wrote:
>> On 1/29/07, Chris Withers <chris at simplistix.co.uk> wrote:
>>> Lennart Regebro wrote:
>>>> Seriously though: It's hard to override,
>>> What do you mean by that?
>> What I mean is that if you want to override that macro in another
>> product, for say a customer site, you will have to monkey-patch it. If
>> you instead register the macro so it becomes a view, it's easy to
>> override.
>
> Right, by specifying an override either in overrides.zcml (zope >= 2.8)
> or providing a local adapter (zope >= 2.10).
Actually, the way we typically override views, especially the ones that
are about the appearance of the app, is through layers and skins.
--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5
More information about the z3-five
mailing list