RE: [Zope] New-style classes and PluggableBrains
I do beleive new-style classes are not currently supported in Zope 2.7.x, due to issues with ExtensionClass. Zope 2.8 should do away with that issue, allowing you to use new-style classes. This, mind you, might not be applicable to you, as PluggableBrains might not be wrapped by ExtensionClass?? J.F. -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Michael Ekstrand Sent: July 23, 2004 10:42 AM To: zope@zope.org Subject: [Zope] New-style classes and PluggableBrains I'm working on developing a PluggableBrains class for some SQL methods in my application in Zope 2.7.1 (running Python 2.3.3 as shipped in the Windows Zope installer), and I've got a couple quick questions. First, if my class inherits from object, does that break anything? It's also inheriting from Acquisition.Implicit and has security information (as an external method creates one and passes it off to protected code in a place or two). Second, if I have some property objects as members, will code accessing them elsewhere behave in a sane and reasonable manner? Will Zope recognize them properly? Most importantly, can I have some or all of the members that the Z SQL Method will be populating defined as properties in the class? TIA, Michael _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Friday 23 July 2004 09:44, Jean-Francois.Doyon@CCRS.NRCan.gc.ca wrote:
I do beleive new-style classes are not currently supported in Zope 2.7.x, due to issues with ExtensionClass.
Hmm... I have heard of ExtensionClass, but not investigated it thoroughly... it seems to be something designed to accomplish a lot of what new-style classes do, is it not?
This, mind you, might not be applicable to you, as PluggableBrains might not be wrapped by ExtensionClass??
I'm not explicitly doing anything with an ExtensionClass. How do I tell/find out if it is being inserted somewhere? -Michael
On Fri, Jul 23, 2004 at 09:55:52AM -0500, Michael Ekstrand wrote:
On Friday 23 July 2004 09:44, Jean-Francois.Doyon@CCRS.NRCan.gc.ca wrote:
I do beleive new-style classes are not currently supported in Zope 2.7.x, due to issues with ExtensionClass.
Hmm... I have heard of ExtensionClass, but not investigated it thoroughly... it seems to be something designed to accomplish a lot of what new-style classes do, is it not?
Yeah. It was written when new-style classes did not exist. -- Paul Winkler http://www.slinkp.com
participants (3)
-
Jean-Francois.Doyon@CCRS.NRCan.gc.ca -
Michael Ekstrand -
Paul Winkler