diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-10 15:18:30 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-10 15:18:30 +0000 |
| commit | 5cf1779a4df258740ec452c55b9f398a261aeb7b (patch) | |
| tree | cbdb9288f5cca7529bd3709b169a53478b3aa191 | |
| parent | c37dc2396b0d7dac88631531f757652581564ae8 (diff) | |
| download | pyramid-5cf1779a4df258740ec452c55b9f398a261aeb7b.tar.gz pyramid-5cf1779a4df258740ec452c55b9f398a261aeb7b.tar.bz2 pyramid-5cf1779a4df258740ec452c55b9f398a261aeb7b.zip | |
Less awkward sentence.
| -rw-r--r-- | repoze/bfg/view.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py index 0e4e47f5d..924bb35fc 100644 --- a/repoze/bfg/view.py +++ b/repoze/bfg/view.py @@ -18,10 +18,10 @@ _marker = object() def view_execution_permitted(context, request, name=''): """ If the view specified by ``context`` and ``name`` is protected - by a permission, return the result of checking the permission - associated with the view using the effective security policy and - the ``request``. If no security policy is in effect, or if the - view is not protected by a permission, return True. """ + by a permission, check the permission associated with the view + using the effective security policy and the ``request``. Return a + boolean result. If no security policy is in effect, or if the + view is not protected by a permission, return True.""" security_policy = queryUtility(ISecurityPolicy) permission = queryMultiAdapter((context, request), IViewPermission, name=name) |
