summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2020-06-22 16:33:13 -0400
committerÉric Araujo <merwok@netwok.org>2020-06-22 16:33:13 -0400
commitbaa59284e1ee26284ecb68d957d5607e40ed786f (patch)
treef41bff89b8c65ea4bcdc557a4e1dd4c35ddb4f1c /docs
parent48a04855ad4f1f1ae6af934090f35a4ad035ed67 (diff)
downloadpyramid-baa59284e1ee26284ecb68d957d5607e40ed786f.tar.gz
pyramid-baa59284e1ee26284ecb68d957d5607e40ed786f.tar.bz2
pyramid-baa59284e1ee26284ecb68d957d5607e40ed786f.zip
first shot for #1602
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/advanced-features.rst2
-rw-r--r--docs/narr/viewconfig.rst8
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/narr/advanced-features.rst b/docs/narr/advanced-features.rst
index 6e819ff5b..6f3b4e11b 100644
--- a/docs/narr/advanced-features.rst
+++ b/docs/narr/advanced-features.rst
@@ -34,7 +34,7 @@ For our example above, you can do this instead:
.. code-block:: python
:linenos:
- @view_config(route_name="items", effective_principals=pyramid.authorization.Authenticated)
+ @view_config(route_name="items", is_authenticated=True)
def auth_view(request):
# do one thing
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst
index b43ebb93e..c60b7b50d 100644
--- a/docs/narr/viewconfig.rst
+++ b/docs/narr/viewconfig.rst
@@ -494,6 +494,12 @@ configured view.
.. versionadded:: 1.4a3
+``is_authenticated``
+
+ XXX doc doc
+
+ .. versionadded:: 2.0
+
``effective_principals``
If specified, this value should be a :term:`principal` identifier or a
sequence of principal identifiers. If the
@@ -505,6 +511,8 @@ configured view.
.. versionadded:: 1.4a4
+ .. deprecated:: TODO add
+
``custom_predicates``
If ``custom_predicates`` is specified, it must be a sequence of references to
custom predicate callables. Custom predicates can be combined with