Michael Merickel
2018-09-28 f081ae991a9107363fceeeeccd361c2f85bdd046
fix docs
3 files modified
17 ■■■■ changed files
docs/narr/viewconfig.rst 9 ●●●●● patch | view | raw | blame | history
pyramid/config/views.py 4 ●●●● patch | view | raw | blame | history
pyramid/util.py 4 ●●● patch | view | raw | blame | history
docs/narr/viewconfig.rst
@@ -352,7 +352,7 @@
  If ``accept`` is not specified, the ``HTTP_ACCEPT`` HTTP header is not taken into consideration when deciding whether or not to invoke the associated view callable.
  See :ref:`accept_content_negotation` for more information.
  See :ref:`accept_content_negotiation` for more information.
  .. versionchanged:: 1.10
      Media ranges such as ``text/*`` will now raise :class:`pyramid.exceptions.ConfigurationError`.
@@ -1028,9 +1028,9 @@
.. index::
   single: Accept
   single: Accept content negotation
   single: Accept content negotiation
.. _accept_content_negotation:
.. _accept_content_negotiation:
Accept Header Content Negotiation
---------------------------------
@@ -1084,6 +1084,9 @@
In this case, the ``application/json`` view should always be selected in cases where it is otherwise ambiguous.
.. index::
    single: default accept ordering
.. _default_accept_ordering:
Default Accept Ordering
pyramid/config/views.py
@@ -687,7 +687,7 @@
          not taken into consideration when deciding whether or not to invoke
          the associated view callable.
          See :ref:`accept_content_negotation` for more information.
          See :ref:`accept_content_negotiation` for more information.
        path_info
@@ -1262,7 +1262,7 @@
        ``weighs_more_than`` and ``weighs_less_than`` control the ordering
        of media types. Each value may be a string or a list of strings.
        See :ref:`accept_content_negotation` for more information.
        See :ref:`accept_content_negotiation` for more information.
        .. versionadded:: 1.10
pyramid/util.py
@@ -665,10 +665,8 @@
    - ``*/*``
    :param offers: A list of offers to be sorted.
    :param order: A weighted list of offer where items closer to the start of
    :param order: A weighted list of offers where items closer to the start of
                  the list will be a preferred over items closer to the end.
    :param is_order_parsed: If the list of orders is pre-parsed then do not
                            parse it again.
    :return: A list of offers sorted first by specificity (higher to lower)
             then by ``order``.