• Jérome Perrin's avatar
    File: workaround that io.BytesIO.tell() returns long on PY2 · d7896d9e
    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.
    d7896d9e
document.erp5.File.py 9.85 KB