[Zope-dev] Re: using ZClasses as DA brains?
Michel Pelletier
michel@digicool.com
Wed, 15 Dec 1999 10:07:58 -0500
> -----Original Message-----
> From: Anthony Baxter [mailto:anthony@interlink.com.au]
> Sent: Tuesday, December 14, 1999 9:00 PM
> Cc: zope-dev@zope.org
> Subject: [Zope-dev] Re: using ZClasses as DA brains?
>
>
> >>> Anthony Baxter wrote
> > Has anyone figured out the necessary magic to get the
> ZClass-as-brains
> > from the current CVS to work?
> >
> > It seems like the 'advanced' tab needs 'manage_product_zclass_info'
> > which is in Shared/DC/ZRDB/DA.py - but I'm stuffed if I can figure
> > out how this is meant to work...
>
> Ah, figured it out. You have to have ZClasses created that
> don't derive
> from the Persistent base classes - the ZClass interface now
> includes this.
>
> Unfortunately the fix to ZClass.py:1.37 to copy
> manage_options from the
> base class fails if you create a ZClass that derives from
> nothing at all.
> I wrapped the copy operation in an if zope_object: test (not
> sure that this
> is the best approach, a better one might be to test for manage_options
> being there at all) and it's happier...
Can we review your diff?
-Michel