[Zope-dev] Extending a class' __bases__ at runtime

Morten W. Petersen morten@thingamy.net
Tue, 28 Aug 2001 23:53:10 +0200 (CEST)


On Tue, 28 Aug 2001, R. David Murray wrote:

> There's another reason to want to know the answer to this: the ability
> to hotpatch the base classes of an existing zope class instead of
> having to modify the source code for that class.  This came up
> for the person who was trying to create a version of the CMF that
> used ZPatterns...and I don't recall hearing a solution.
> 
> Plus, it sure is a "surprise" that something that works in normal
> python code doesn't work in Zope!  I presume this is an ExtensionClass
> issue, but I don't know enough to suss it out.

I'd offer $50 of merchandise at <put your favourite online store here> to
anyone who fixes this issue.

Cheers,

Morten