diff options
| author | Michael Merickel <michael@merickel.org> | 2012-10-30 01:09:51 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2012-10-30 01:09:51 -0500 |
| commit | 6e96403bbc3069ec876690be976121b759c51cb1 (patch) | |
| tree | c5d0733d04d0cd03504bba75077d3415f9cf7c29 | |
| parent | 6099144cf0b85ecfb9c97e344ef6ca499833725e (diff) | |
| download | pyramid-6e96403bbc3069ec876690be976121b759c51cb1.tar.gz pyramid-6e96403bbc3069ec876690be976121b759c51cb1.tar.bz2 pyramid-6e96403bbc3069ec876690be976121b759c51cb1.zip | |
updated docs
| -rw-r--r-- | pyramid/security.py | 8 |
1 files changed, 7 insertions, 1 deletions
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: |
