Shane Hathaway wrote:
> > Will it re-appear when the replacement is deleted?
> >
> > That could be confusing...
> No, and I think it's really not confusing, since it's quite a strange
> and rare thing to set __replaceable__=ObjectManager.REPLACEABLE on a
> normal instance.  :-/

Very true :-)

> Think of it more like Python instances vs. classes.  Setting
> __replaceable__=REPLACEABLE on a ZClass method is like setting a class
> attribute in Python, then overriding it in an instance is like setting
> an instance attribute.  If you set __replaceable__=REPLACEABLE on an
> instance attribute, then replace it, it's like setting "foo.a = bar"
> then "foo.a = boo".  The reference to "bar" disappears without any
> implicit recovery.

Hurm, that is a shame...
What happens if you override a method (say Squishdot.render) and then
delete your overriding method?
Does it depend on whether you're talking about python products or



Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to