Zope.publisher

Latest version: v7.1

Safety actively analyzes 688386 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 11

7.2

================

- Nothing changed yet.

7.1

================

- Drop support for Python 3.7.

- Add support for Python 3.12, 3.13.

- Fix test suite to use proper line endings (``\r\n``) in raw multipart/form-data
HTTP requests, because multipart 1.0.0 is stricter about line endings.
Fixes `issue 74 <https://github.com/zopefoundation/zope.publisher/issues/74>`_.

- ``FileUpload`` objects now implement a fallback ``seekable()`` method on
Python 3.7 through 3.10, where tempfile.SpooledTemporaryFile lacks it.
Fixes `issue 44 <https://github.com/zopefoundation/zope.publisher/issues/44>`_
again, which had regressed due to certain assumptions that were no longer
true after the multipart 1.0.0 release.

7.0

================

- Drop support for Python 2.7, 3.5, 3.6.

- Drop support for ``im_func`` and ``func_code``.

- Add support for Python 3.11.

6.1.0

==================

- Revamp handling of query string and form decoding in ``BrowserRequest``.

The previous approach was to tell underlying libraries to decode inputs
using ISO-8859-1, then re-encode as ISO-8859-1 and decode using an
encoding deduced from the ``Accept-Charset`` request header. However,
this didn't make much conceptual sense (since ``Accept-Charset`` defines
the preferred *response* encoding), and it made it impossible to handle
cases where the encoding was specified as something other than ISO-8859-1
in the request (which might even be on a per-item basis, in the case of
``multipart/form-data`` input).

We now only perform the dubious ``Accept-Charset`` guessing for query
strings; in other cases we let ``multipart`` determine the encoding,
defaulting to UTF-8 as per the HTML specification. For cases where
applications need to specify some other default form encoding,
``BrowserRequest`` subclasses can now set ``default_form_charset``.

See `issue 65
<https://github.com/zopefoundation/zope.publisher/issues/65>`_.

- Add support for Python 3.10.

6.0.2

==================

- Avoid traceback reference cycle in ``zope.publisher.publish.publish``.
- Handle empty Content-Type environment variable gracefully.

6.0.1

==================

- Fix test compatibility with zope.interface 5.4.

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.