summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2015-04-06 06:18:29 -0400
committerChris McDonough <chrism@plope.com>2015-04-06 06:18:29 -0400
commit2a842e615d5f36b4dfb26e843de7d73147e546f8 (patch)
tree74619878ffff97b45075d10c6072ca26d1a6c216
parent8491964f35f5a3327751eb9dc42c9d6f128c9c22 (diff)
downloadpyramid-2a842e615d5f36b4dfb26e843de7d73147e546f8.tar.gz
pyramid-2a842e615d5f36b4dfb26e843de7d73147e546f8.tar.bz2
pyramid-2a842e615d5f36b4dfb26e843de7d73147e546f8.zip
add comment about not changing view_execution_permitted use of .lookup for view finding
-rw-r--r--pyramid/security.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyramid/security.py b/pyramid/security.py
index f993ef353..82e6b73a9 100644
--- a/pyramid/security.py
+++ b/pyramid/security.py
@@ -225,6 +225,8 @@ def view_execution_permitted(context, request, name=''):
"""
reg = _get_registry(request)
provides = [IViewClassifier] + map_(providedBy, (request, context))
+ # XXX not sure what to do here about using _find_views or analogue;
+ # for now let's just keep it as-is
view = reg.adapters.lookup(provides, ISecuredView, name=name)
if view is None:
view = reg.adapters.lookup(provides, IView, name=name)