The __str__ implementation in OFS.Image.File is broken - Pdata objects do not have a decode method. It only works for files that are small enough so their data gets stored as a string value.
The issue exists on both master and the 4.x branch.
|
def __str__(self): |
|
return self.data.decode(self._get_encoding()) |
The
__str__implementation inOFS.Image.Fileis broken -Pdataobjects do not have adecodemethod. It only works for files that are small enough so their data gets stored as a string value.The issue exists on both
masterand the4.xbranch.Zope/src/OFS/Image.py
Lines 665 to 666 in 5962a30