Closed mgedmin closed 1 month ago
This appears to have regressed in zope.publisher 6.0.0 recently. GitHub Actions show that the tests passed four days ago, but are failing now.
There was a new https://pypi.org/project/multipart/#history release (1.0.0) four days ago, which I don't think is a coincidence.
So, the seekable()
method disappeared for me because multipart.MultipartPart.file, which is a tempfile.SpooledTemporaryFile since multipart 1.0.0, doesn't have seekable()
in Python 3.10 or older, and I'm using 3.8 (because Ubuntu 20.04 LTS).
If you pass self.request['file_field'] to zipfile.ZipFile() on Python 3.7, you will get this error:
Adding
seekable
to themethods
list inFileUpload.__init__
is enough to make the error go away.This error does not show up on Python 3.5. I haven't checked Python 3.6 yet.