• Jérome Perrin's avatar
    File: workaround that io.BytesIO.tell() returns long on PY2 · 996c0f55
    Jérome Perrin authored
    Unlike StringIO.StringIO().tell() and open().tell(), which all return
    int, io.BytesIO().tell() returns long. Because io.BytesIO is used when
    uploading files on Zope4, this cause PropertySheetValidity errors when
    checking consistency, because Data.size property is expected to be int.
    996c0f55
document.erp5.File.py 9.85 KB