-
Aurel authored
See commit 12e4cc8b. File._setFile does not support that 'data' is a bytes object: it crashes if there are already data stored on the object. test_PUT_on_web_page (erp5_dms:testWebDavSupport) is changed to cover this case and the caller of File._edit is fixed to make that 'file' is always a file-like object. File._setFile is also optimized to avoid reading data for nothing if the document has no data.
83635909