Zope.publisher

Latest version: v7.0

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

Scan your dependencies

Page 1 of 10

7.1

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

- Nothing changed yet.

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.

6.0.0

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

- Port form data parsing to ``multipart``, which is a new dependency. See
`issue 39 <https://github.com/zopefoundation/zope.publisher/issues/39>`_.
Note that as a result ``FileUpload`` objects no longer have a ``name``
attribute: the ``name`` attribute couldn't be used in portable code in any
case, and the usual methods on open files should be used instead.

- Add support for Python 3.9.

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.