diff options
| author | Chris McDonough <chrism@plope.com> | 2012-02-26 05:22:02 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-02-26 05:22:02 -0500 |
| commit | 1b7342f994abeb94a63b571a2a397cb2328eed98 (patch) | |
| tree | 07007250680ecca93de8f9341639284e1b899853 | |
| parent | f077a0de559a4df2a1efb5867a22eb33fc69407a (diff) | |
| download | pyramid-1b7342f994abeb94a63b571a2a397cb2328eed98.tar.gz pyramid-1b7342f994abeb94a63b571a2a397cb2328eed98.tar.bz2 pyramid-1b7342f994abeb94a63b571a2a397cb2328eed98.zip | |
- Pyramid authorization policies did not show up in the introspector.
| -rw-r--r-- | CHANGES.txt | 2 | ||||
| -rw-r--r-- | pyramid/config/security.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 249e7fcfc..fb2f4486a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,8 @@ Bug Fixes Configurator was an old-style ``pyramid.configuration.Configurator`` instance. +- Pyramid authorization policies did not show up in the introspector. + Deprecations ------------ diff --git a/pyramid/config/security.py b/pyramid/config/security.py index a0ea173ba..e8ef1518d 100644 --- a/pyramid/config/security.py +++ b/pyramid/config/security.py @@ -73,7 +73,8 @@ class SecurityConfiguratorMixin(object): intr['policy'] = policy # authorization policy used by view config (phase 3) and # authentication policy (phase 2) - self.action(IAuthorizationPolicy, register, order=PHASE1_CONFIG) + self.action(IAuthorizationPolicy, register, order=PHASE1_CONFIG, + introspectables=(intr,)) self.action(None, ensure) def _set_authorization_policy(self, policy): |
