unicode calls __str__ for acquisition wrapped objects
Bug #719335 reported by
Michael Howitz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Acquisition |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
unicode(
but unicode(
See the following bin/zopectl debug session:
$ bin/zinstance debug
Starting debugger (the name "app" is bound to the top-level Zope object)
>>> import OFS.SimpleItem
>>> class A(OFS.SimpleIte
... def __str__(self): return '__str__ called'
... def __unicode__(self): return '__unicode__ called'
...
>>> a = A()
>>> print unicode(a)
__unicode__ called
>>> print unicode(
__str__ called
>>> print type(a.__of__(app))
<type 'Acquisition.
This happens for Python 2.6 and 2.7 on Zope 2.13.4.
To post a comment you must log in.
Fix released in 2.13.6.