summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/config/routes.py19
-rw-r--r--pyramid/config/views.py17
2 files changed, 18 insertions, 18 deletions
diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py
index c6e8fe563..24f38a4fd 100644
--- a/pyramid/config/routes.py
+++ b/pyramid/config/routes.py
@@ -140,16 +140,15 @@ class RoutesConfiguratorMixin(object):
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.
+ 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 will match the current route. If this does not match the
+ ``Accept`` header of the request, route matching continues.
Predicate Arguments
diff --git a/pyramid/config/views.py b/pyramid/config/views.py
index 8ee7ca6c9..1f69d7e0b 100644
--- a/pyramid/config/views.py
+++ b/pyramid/config/views.py
@@ -843,14 +843,15 @@ class ViewsConfiguratorMixin(object):
accept
- The value of this argument 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, this predicate will be true.
+ 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 will match the current view. If this does not match the
+ ``Accept`` header of the request, view matching continues.
Predicate Arguments