[Zope-dev] Re: Replaceable Property question
Shane Hathaway
shane@digicool.com
Mon, 07 Aug 2000 08:00:03 -0400
Chris Withers wrote:
> Will there be any access to the method/object that is being overridden
> from inside the one overriding it? Something like:
>
> 'self.__class__.my_method("blah")'
Depends on whether the original method comes from a ZClass or product.
If so, yes. But if it's a regular object that's marked as replaceable
and it's replaced, the original will vanish.
> ...but also accessible from DTML?
No. DTML will never have access to the replaced method.
> Also, will folders have replaceableness for their contents? (so you
> could, for example, have a root index_html which could not be
> over-ridden lower down?
I don't understand your first question, but the answer to the second is
"yes" regardless. :-) You would set index_html.__replaceable__ =
ObjectManager.UNIQUE .
Shane