[Zope3-checkins] CVS: Zope3/src/zope/app/browser/exception - unauthorized.py:1.7

Jim Fulton jim at zope.com
Fri Mar 5 17:09:56 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/exception
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/browser/exception

Modified Files:
	unauthorized.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/browser/exception/unauthorized.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/exception/unauthorized.py:1.6	Tue Aug 12 15:14:53 2003
+++ Zope3/src/zope/app/browser/exception/unauthorized.py	Fri Mar  5 17:08:54 2004
@@ -29,10 +29,10 @@
         self.request.response.setStatus(403)
         principal = self.request.user
         prinreg = getParent(principal)
-        if not IAuthenticationService.isImplementedBy(prinreg):
+        if not IAuthenticationService.providedBy(prinreg):
             # With PluggableAuthenticationService, principals are
             # contained in the PrincipalSource, which is contained in
             # the service.
             prinreg = getParent(prinreg)
-        assert IAuthenticationService.isImplementedBy(prinreg)
+        assert IAuthenticationService.providedBy(prinreg)
         prinreg.unauthorized(principal.getId(), self.request)




More information about the Zope3-Checkins mailing list