We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d19faa7 commit 7481fd5Copy full SHA for 7481fd5
5 files changed
CHANGES.txt
@@ -43,6 +43,10 @@ Feature
43
``acceptable_offers``. See backward incompatibilities below.
44
See https://github.com/Pylons/webob/pull/462
45
46
+- Consolidation of ``AcceptLanguage`` header handling into a single class.
47
+ See backward incompatibilities below for more information.
48
+ See https://github.com/Pylons/webob/pull/463
49
+
50
Compatibility
51
~~~~~~~~~~~~~
52
@@ -114,6 +118,18 @@ Backwards Incompatibilities
114
118
115
119
116
120
121
+- Remove ``AcceptLanguageValidHeader``, ``AcceptLanguageNoHeader`` and
122
+ ``AcceptLanguageInvalidHeader``. These classes are consolidated into
123
+ ``AcceptLanguage`` with a ``header_state`` attribute for users that need
124
+ to know the state of the header.
125
126
127
+- Remove previously-deprecated ``webob.acceptparse.AcceptLanguage`` methods
128
+ ``__iter__``, ``__contains__``, ``best_match`` and ``quality``.
129
+ Look at using ``basic_filtering`` and ``lookup`` methods instead that
130
+ implement RFC-compliant algorithms for language negotiation.
131
132
117
133
Experimental Features
134
~~~~~~~~~~~~~~~~~~~~~
135
docs/api/webob.txt
@@ -47,23 +47,9 @@ methods:
acceptable_offers, best_match, quality
.. autoclass:: AcceptLanguage
- :members: parse
-
-.. autoclass:: AcceptLanguageValidHeader
53
- :members: header_value, parsed, __init__, __add__, __contains__, __iter__,
54
- __radd__, __str__, parse, basic_filtering, best_match, lookup,
55
- quality
56
57
-.. autoclass:: AcceptLanguageNoHeader
58
59
60
61
62
-.. autoclass:: AcceptLanguageInvalidHeader
63
64
65
66
+ :members:
+ parse, header_value, parsed, header_state, __init__, __add__,
+ __bool__, __radd__, __repr__, __str__, copy, basic_filtering, lookup
67
68
Cache-Control
69
0 commit comments