diff options
| author | John Anderson <sontek@gmail.com> | 2015-01-20 18:34:27 -0800 |
|---|---|---|
| committer | John Anderson <sontek@gmail.com> | 2015-01-20 18:34:27 -0800 |
| commit | 8724ab8301c9d5808d781bab0af1df56909c9236 (patch) | |
| tree | 34fa963e424bae500e6bc010a7d2012c3d9bc89d /docs/narr/sessions.rst | |
| parent | ae7bcd7cabc53e0b500c6a79f30606e67217ad1d (diff) | |
| parent | 6c867a84ed7d7a1307811fba0cf1e1575b9dbefb (diff) | |
| download | pyramid-8724ab8301c9d5808d781bab0af1df56909c9236.tar.gz pyramid-8724ab8301c9d5808d781bab0af1df56909c9236.tar.bz2 pyramid-8724ab8301c9d5808d781bab0af1df56909c9236.zip | |
Merge branch 'master' of https://github.com/Pylons/pyramid into support_more_features_in_routes
Conflicts:
CHANGES.txt
Diffstat (limited to 'docs/narr/sessions.rst')
| -rw-r--r-- | docs/narr/sessions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst index 8da743a01..5c103405a 100644 --- a/docs/narr/sessions.rst +++ b/docs/narr/sessions.rst @@ -44,7 +44,7 @@ It is digitally signed, however, and thus its data cannot easily be tampered with. You can configure this session factory in your :app:`Pyramid` application -by using the :meth:`pyramid.config.Configurator.set_session_factory`` method. +by using the :meth:`pyramid.config.Configurator.set_session_factory` method. .. code-block:: python :linenos: @@ -380,7 +380,7 @@ Checking CSRF Tokens Manually ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In request handling code, you can check the presence and validity of a CSRF -token with :func:`pyramid.session.check_csrf_token(request)``. If the token is +token with :func:`pyramid.session.check_csrf_token`. If the token is valid, it will return ``True``, otherwise it will raise ``HTTPBadRequest``. Optionally, you can specify ``raises=False`` to have the check return ``False`` instead of raising an exception. |
