From 6e96403bbc3069ec876690be976121b759c51cb1 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Tue, 30 Oct 2012 01:09:51 -0500 Subject: updated docs --- pyramid/security.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyramid/security.py b/pyramid/security.py index 5d4a8db4a..3e25f9b2f 100644 --- a/pyramid/security.py +++ b/pyramid/security.py @@ -133,7 +133,13 @@ def view_execution_permitted(context, request, name=''): view using the effective authentication/authorization policies and the ``request``. Return a boolean result. If no :term:`authorization policy` is in effect, or if the view is not - protected by a permission, return ``True``.""" + protected by a permission, return ``True``. If no view can view found, + an exception will be raised. + + .. versionchanged:: 1.4a4 + An exception is raised if no view is found. + + """ try: reg = request.registry except AttributeError: -- cgit v1.2.3