From 573184904e48fa5eb9c04e7d3d321183b3e96f6d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 6 Sep 2009 03:58:46 +0000 Subject: Remove 0.9 deprecations. --- repoze/bfg/security.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'repoze/bfg/security.py') diff --git a/repoze/bfg/security.py b/repoze/bfg/security.py index bb33435a0..09f146ded 100644 --- a/repoze/bfg/security.py +++ b/repoze/bfg/security.py @@ -1,7 +1,6 @@ from zope.component import getSiteManager from zope.component import queryUtility from zope.component import providedBy -from zope.deprecation import deprecated from repoze.bfg.interfaces import IAuthenticationPolicy from repoze.bfg.interfaces import IAuthorizationPolicy @@ -233,27 +232,3 @@ class ACLAllowed(ACLPermitsResult): class Unauthorized(Exception): pass -# BBB imports: these must come at the end of the file, as there's a -# circular dependency between secpols and security -from repoze.bfg.secpols import ACLSecurityPolicy -from repoze.bfg.secpols import InheritingACLSecurityPolicy -from repoze.bfg.secpols import RemoteUserACLSecurityPolicy -from repoze.bfg.secpols import RemoteUserInheritingACLSecurityPolicy -from repoze.bfg.secpols import WhoACLSecurityPolicy -from repoze.bfg.secpols import WhoInheritingACLSecurityPolicy -# /BBB imports - -for name in ('ACLSecurityPolicy', - 'InheritingACLSecurityPolicy', - 'RemoteUserACLSecurityPolicy', - 'RemoteUserInheritingACLSecurityPolicy', - 'WhoACLSecurityPolicy', - 'WhoInheritingACLSecurityPolicy'): - deprecated(name, - ('repoze.bfg.security.%s should be imported from ' - 'repoze.bfg.secpols.%s as of BFG 0.9. Please consider ' - 'disusing any security policy in favor of separate ' - 'authorization and authentication policies; security ' - 'policies themselves are deprecated as of BFG 0.9; see the ' - 'Security chapter of the BFG docs for the new spellings.'% - (name, name))) -- cgit v1.2.3