Anthony Baxter wrote:
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...
Yes, this is the correct fix. I just checked it in. Thanks. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.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.