[Zope] problem with new style classes in zope

Dieter Maurer dieter at handshake.de
Wed Mar 24 15:40:27 EST 2004


Maric MICHAUD wrote at 2004-3-23 19:15 +0100:
>I'm using zope (2.6 and python 2.2) with an existing python framework 
>which use python's new style classes.
>Once new style classes correctly referenced by my products, and data 
>pickled/unpickled properly, i can access to all methods and members but 
>there's still a problem with properties.
>
>I have a instance of a new style class "A" with property "p" and method 
>"m" which is "return self.p", referenced by a instance of a zope product 
>"P". Getsetters of p are defined with docstrings.
>url : P/A/m and from pythonscript P.A.m() function as expected and print 
>the value of p, but P/A/p and P.A.p return Unauthorized exceptions.
>Did I missed something ?

"ExtensionClass" will not work together with new style classes
until Zope 2.8.

-- 
Dieter



More information about the Zope mailing list