aq_acquire on u'aq_parent'

Bug #143358 reported by Florent Guillaume
2
Affects Status Importance Assigned to Milestone
Acquisition
Fix Released
Medium
Tres Seaver

Bug Description

aq_acquire fails if it is passed a unicode u'aq_parent'.

>>> from Acquisition import Implicit, aq_acquire
>>> class C(Implicit):
... pass
...
>>> ob1 = C()
>>> ob2 = C()
>>> a = ob1.__of__(ob2)
>>> getattr(a, u'aq_parent')
<C instance at 40fc1790>
>>> aq_acquire(a, u'aq_parent')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: aq_parent

Tags: bug zope
Revision history for this message
Hanno Schlichting (hannosch) wrote :

This is still true. aq_get has the same behavior.

affects: zope2 → acquisition
Changed in acquisition:
status: Confirmed → Triaged
Tres Seaver (tseaver)
Changed in acquisition:
status: Triaged → Fix Committed
Revision history for this message
Tres Seaver (tseaver) wrote :
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in acquisition:
status: Fix Committed → Fix Released
assignee: Jim Fulton (jim-zope) → Tres Seaver (tseaver)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.