[Zope] (sort of teaser) Re: [Zope] Recursive aquisition: goodor bad?
Jim Fulton
jim@digicool.com
Tue, 08 Jun 1999 14:25:36 +0000
Michel Pelletier wrote:
>
> x = DMC(...)
> return x.__of__(self)
>
> x must inherit ExtensionClass.Base to get this machinery.
Actually, both x and self must be ExtensionClass instances.
One way to be an extension class is to subclass Base, but
Persistent is an extension class too that is not a subclass of Base.
x must have an __of__ implementation. Not all extension classes
implement __of__. In this case, x's class wants to subclass
one of the acquisition base classes, Implicit or Explicit.
Jim
--
Jim Fulton mailto:jim@digicool.com
Technical Director (540) 371-6909 Python Powered!
Digital Creations http://www.digicool.com http://www.python.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.