Zope bug 1730 led me to the strange following behavior of aq_acquire with a unicode special name:

>>> 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


Just a note so that you can ensure it's okay in Zope 2.8's Acquisition.

Florent

--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to