summaryrefslogtreecommitdiff
path: root/docs/narr/introspector.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-09-19 04:46:01 -0400
committerChris McDonough <chrism@plope.com>2012-09-19 04:46:01 -0400
commit643a83473a6faabd0ff08547a0cbca09e9cdda1c (patch)
tree1825c27d957beff5509940215efbf97931dbe9af /docs/narr/introspector.rst
parentc5680bbd7850c917ba1f1f68134ff4c8d3c37246 (diff)
downloadpyramid-643a83473a6faabd0ff08547a0cbca09e9cdda1c.tar.gz
pyramid-643a83473a6faabd0ff08547a0cbca09e9cdda1c.tar.bz2
pyramid-643a83473a6faabd0ff08547a0cbca09e9cdda1c.zip
A ``check_csrf`` view predicate was added. For example, you can now do
``config.add_view(someview, check_csrf=True)``. When the predicate is checked, if the ``csrf_token`` value in ``request.params`` matches the csrf token in the request's session, the view will be permitted to execute. Otherwise, it will not be permitted to execute.
Diffstat (limited to 'docs/narr/introspector.rst')
-rw-r--r--docs/narr/introspector.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/narr/introspector.rst b/docs/narr/introspector.rst
index 6bfaf11c0..b88f3f0c8 100644
--- a/docs/narr/introspector.rst
+++ b/docs/narr/introspector.rst
@@ -393,6 +393,10 @@ introspectables in categories not described here.
The ``match_param`` argument passed to ``add_view``.
+ ``csrf_token``
+
+ The ``csrf_token`` argument passed to ``add_view``.
+
``callable``
The (resolved) ``view`` argument passed to ``add_view``. Represents the