Skip to content

Commit

Permalink
consolidate AcceptLanguageXXXHeader classes into the single AcceptLan…
Browse files Browse the repository at this point in the history
…guage class
  • Loading branch information
mmerickel committed Mar 3, 2024
1 parent d19faa7 commit 7481fd5
Show file tree
Hide file tree
Showing 5 changed files with 418 additions and 1,665 deletions.
16 changes: 16 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Feature
``acceptable_offers``. See backward incompatibilities below.
See https://github.com/Pylons/webob/pull/462

- Consolidation of ``AcceptLanguage`` header handling into a single class.
See backward incompatibilities below for more information.
See https://github.com/Pylons/webob/pull/463

Compatibility
~~~~~~~~~~~~~

Expand Down Expand Up @@ -114,6 +118,18 @@ Backwards Incompatibilities

See https://github.com/Pylons/webob/pull/462

- Remove ``AcceptLanguageValidHeader``, ``AcceptLanguageNoHeader`` and
``AcceptLanguageInvalidHeader``. These classes are consolidated into
``AcceptLanguage`` with a ``header_state`` attribute for users that need
to know the state of the header.
See https://github.com/Pylons/webob/pull/463

- Remove previously-deprecated ``webob.acceptparse.AcceptLanguage`` methods
``__iter__``, ``__contains__``, ``best_match`` and ``quality``.
Look at using ``basic_filtering`` and ``lookup`` methods instead that
implement RFC-compliant algorithms for language negotiation.
See https://github.com/Pylons/webob/pull/463

Experimental Features
~~~~~~~~~~~~~~~~~~~~~

Expand Down
20 changes: 3 additions & 17 deletions docs/api/webob.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,9 @@ methods:
acceptable_offers, best_match, quality

.. autoclass:: AcceptLanguage
:members: parse

.. autoclass:: AcceptLanguageValidHeader
:members: header_value, parsed, __init__, __add__, __contains__, __iter__,
__radd__, __str__, parse, basic_filtering, best_match, lookup,
quality

.. autoclass:: AcceptLanguageNoHeader
:members: header_value, parsed, __init__, __add__, __contains__, __iter__,
__radd__, __str__, parse, basic_filtering, best_match, lookup,
quality

.. autoclass:: AcceptLanguageInvalidHeader
:members: header_value, parsed, __init__, __add__, __contains__, __iter__,
__radd__, __str__, parse, basic_filtering, best_match, lookup,
quality

:members:
parse, header_value, parsed, header_state, __init__, __add__,
__bool__, __radd__, __repr__, __str__, copy, basic_filtering, lookup

Cache-Control
~~~~~~~~~~~~~
Expand Down
Loading

0 comments on commit 7481fd5

Please sign in to comment.