[Zope-dev] ZBabel Object incompatibility with Zope 2.5 b2

Matthew T. Kromer matt@zope.com
Tue, 11 Dec 2001 17:24:30 -0500


Joachim Werner wrote:

>Doesn't seem to make any difference :-(
>
>What does that option do?
>
>
>>>class Rewrapper(Base):
>>>
>>>   def __init__(self, path):
>>>       self._path = path
>>>
>>>   def __of__(self, parent):
>>>       ob = parent
>>>       for p in self._path:
>>>           ob = getattr(ob, p)   <= HERE WE GET A RECURSION ERROR
>>>       return ob
>>>
>>>
>>OK,
>>
>>I think this is somthing similar to what Martijn Faassen was seeing 
>>where its causing an acquisition wrapper to be wrapped with itself.
>>
>>I'm thinking about it right now.
>>
>>As an experiment, try setting ZOPE_SECURITY_POLICY=PYTHON before 
>>starting Zope and see if you still get the error.
>>
>>
>

Turning on ZOPE_SECURITY_POLICY=PYTHON in the environment activates the 
older Python security machinery rather than the C accelerated machinery. 
 If the problem dissapears then, its a problem with the C implementation.