From ff1213e8f2aed987108ba57aed517c033491b1aa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 14 Apr 2010 02:49:19 +0000 Subject: Add "exception views" work contributed primarily by Andrey Popp by merging the "phash" branch. --- repoze/bfg/tests/test_security.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/tests/test_security.py') diff --git a/repoze/bfg/tests/test_security.py b/repoze/bfg/tests/test_security.py index 0a15831b7..13a0e2d9b 100644 --- a/repoze/bfg/tests/test_security.py +++ b/repoze/bfg/tests/test_security.py @@ -118,6 +118,7 @@ class TestViewExecutionPermitted(unittest.TestCase): from repoze.bfg.threadlocal import get_current_registry from zope.interface import Interface from repoze.bfg.interfaces import ISecuredView + from repoze.bfg.interfaces import IViewClassifier class Checker(object): def __permitted__(self, context, request): self.context = context @@ -125,7 +126,7 @@ class TestViewExecutionPermitted(unittest.TestCase): return allow checker = Checker() reg = get_current_registry() - reg.registerAdapter(checker, (Interface, Interface), + reg.registerAdapter(checker, (IViewClassifier, Interface, Interface), ISecuredView, view_name) return checker -- cgit v1.2.3