Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Take advantage of new pyramid_multiauth
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Feb 9, 2016
1 parent 039448f commit 112e1c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cliquet/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,7 @@ def setup_statsd(config):
config.commit()
policy = config.registry.queryUtility(IAuthenticationPolicy)
if isinstance(policy, MultiAuthenticationPolicy):
# XXX: add method in pyramid_multiauth
# https://github.com/mozilla-services/pyramid_multiauth/pull/13
for subpolicy in policy._policies:
name = getattr(subpolicy, "_pyramid_multiauth_name", None)
for name, subpolicy in policy.get_policies():
client.watch_execution_time(subpolicy,
prefix='authentication',
classname=name)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'colander',
'cornice >= 1.1', # Fix cache CORS
'python-dateutil',
'pyramid_multiauth >= 0.6', # Policy name in event.
'pyramid_multiauth >= 0.7', # Contained policy names.
'pyramid_tm',
'redis', # Default backend
'requests',
Expand Down

0 comments on commit 112e1c4

Please sign in to comment.