diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-14 02:49:19 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-14 02:49:19 +0000 |
| commit | ff1213e8f2aed987108ba57aed517c033491b1aa (patch) | |
| tree | f531544c3373ae7d5b51746987cb373326277a9c /repoze/bfg/tests/test_security.py | |
| parent | 2b6bc8adfa294f7133680f64df411251afb67dfc (diff) | |
| download | pyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.tar.gz pyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.tar.bz2 pyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.zip | |
Add "exception views" work contributed primarily by Andrey Popp by merging the "phash" branch.
Diffstat (limited to 'repoze/bfg/tests/test_security.py')
| -rw-r--r-- | repoze/bfg/tests/test_security.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
