Bert JW Regeer
2014-12-15 958c4c7de27b3353dab6e2a7552a17321236c138
Update add_route accept to non-predicate
1 files modified
26 ■■■■ changed files
pyramid/config/routes.py 26 ●●●● patch | view | raw | blame | history
pyramid/config/routes.py
@@ -138,6 +138,19 @@
          .. versionadded:: 1.1
        accept
          This value represents a match query for one or more
          mimetypes in the ``Accept`` HTTP request header.  If this
          value is specified, it must be in one of the following
          forms: a mimetype match token in the form ``text/plain``, a
          wildcard mimetype match token in the form ``text/*`` or a
          match-all wildcard mimetype match token in the form ``*/*``.
          If any of the forms matches the ``Accept`` header of the
          request, or if the ``Accept`` header isn't set at all in the
          request, this predicate will be true. If this predicate
          returns ``False``, route matching continues.
        Predicate Arguments
        pattern
@@ -219,19 +232,6 @@
          represents a header name or a header name/value pair, the
          case of the header name is not significant.  If this
          predicate returns ``False``, route matching continues.
        accept
          This value represents a match query for one or more
          mimetypes in the ``Accept`` HTTP request header.  If this
          value is specified, it must be in one of the following
          forms: a mimetype match token in the form ``text/plain``, a
          wildcard mimetype match token in the form ``text/*`` or a
          match-all wildcard mimetype match token in the form ``*/*``.
          If any of the forms matches the ``Accept`` header of the
          request, or if the ``Accept`` header isn't set at all in the
          request, this predicate will be true. If this predicate
          returns ``False``, route matching continues.
        effective_principals