[Zope3-checkins] SVN: Zope3/trunk/src/ Changed all references to
the deprecated IAuthenticationService to
Jim Fulton
jim at zope.com
Wed Jan 12 07:39:38 EST 2005
Log message for revision 28801:
Changed all references to the deprecated IAuthenticationService to
IAuthentication.
Changed:
U Zope3/trunk/src/bugtracker/tests/placelesssetup.py
U Zope3/trunk/src/bugtracker/tests/test_vocabularies.py
U Zope3/trunk/src/zope/app/pluggableauth/__init__.py
U Zope3/trunk/src/zope/app/pluggableauth/interfaces.py
-=-
Modified: Zope3/trunk/src/bugtracker/tests/placelesssetup.py
===================================================================
--- Zope3/trunk/src/bugtracker/tests/placelesssetup.py 2005-01-12 02:08:58 UTC (rev 28800)
+++ Zope3/trunk/src/bugtracker/tests/placelesssetup.py 2005-01-12 12:39:37 UTC (rev 28801)
@@ -41,7 +41,7 @@
from zope.app.renderer.plaintext import IPlainTextSource
from zope.app.renderer.plaintext import PlainTextToHTMLRenderer
from zope.app.renderer.plaintext import PlainTextSourceFactory
-from zope.app.security.interfaces import IAuthenticationService
+from zope.app.security.interfaces import IAuthentication
from zope.app.size.interfaces import ISized
from zope.app.traversing.interfaces import IContainmentRoot, ITraverser
from zope.app.traversing.interfaces import ITraversable, IPhysicallyLocatable
@@ -106,7 +106,7 @@
registry.register('Users', UserVocabulary)
defineService(zapi.servicenames.Authentication,
- IAuthenticationService)
+ IAuthentication)
serviceManager.provideService(zapi.servicenames.Authentication,
principalRegistry)
Modified: Zope3/trunk/src/bugtracker/tests/test_vocabularies.py
===================================================================
--- Zope3/trunk/src/bugtracker/tests/test_vocabularies.py 2005-01-12 02:08:58 UTC (rev 28800)
+++ Zope3/trunk/src/bugtracker/tests/test_vocabularies.py 2005-01-12 12:39:37 UTC (rev 28801)
@@ -28,7 +28,7 @@
from zope.app.annotation.attribute import AttributeAnnotations
from zope.app.annotation.interfaces import IAnnotations, IAttributeAnnotatable
from zope.app.container.contained import contained, Contained
-from zope.app.security.interfaces import IAuthenticationService
+from zope.app.security.interfaces import IAuthentication
from zope.app.security.principalregistry import principalRegistry, Principal
from bugtracker.interfaces import IManagableVocabulary
@@ -195,7 +195,7 @@
def setUp(self):
PlacelessSetup.setUp(self)
- defineService(zapi.servicenames.Authentication, IAuthenticationService)
+ defineService(zapi.servicenames.Authentication, IAuthentication)
serviceManager.provideService(zapi.servicenames.Authentication,
principalRegistry)
principalRegistry.definePrincipal(
Modified: Zope3/trunk/src/zope/app/pluggableauth/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/pluggableauth/__init__.py 2005-01-12 02:08:58 UTC (rev 28800)
+++ Zope3/trunk/src/zope/app/pluggableauth/__init__.py 2005-01-12 12:39:37 UTC (rev 28801)
@@ -81,7 +81,7 @@
OrderedContainer.__init__(self)
def authenticate(self, request):
- """ See `IAuthenticationService`. """
+ """ See `IAuthentication`. """
for ps_key, ps in self.items():
loginView = zapi.queryView(ps, "login", request)
if loginView is not None:
@@ -101,7 +101,7 @@
return None
def unauthorized(self, id, request):
- """ See `IAuthenticationService`. """
+ """ See `IAuthentication`. """
next = queryNextService(self, Authentication, None)
if next is not None:
@@ -110,7 +110,7 @@
return None
def getPrincipal(self, id):
- """ See `IAuthenticationService`.
+ """ See `IAuthentication`.
For this implementation, an `id` is a string which can be
split into a 3-tuple by splitting on tab characters. The
@@ -145,7 +145,7 @@
return source.getPrincipal(id)
def getPrincipals(self, name):
- """ See `IAuthenticationService`. """
+ """ See `IAuthentication`. """
for ps_key, ps in self.items():
for p in ps.getPrincipals(name):
Modified: Zope3/trunk/src/zope/app/pluggableauth/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/pluggableauth/interfaces.py 2005-01-12 02:08:58 UTC (rev 28800)
+++ Zope3/trunk/src/zope/app/pluggableauth/interfaces.py 2005-01-12 12:39:37 UTC (rev 28801)
@@ -21,7 +21,7 @@
from zope.app.container.interfaces import IContainer, IContained
from zope.app.container.constraints import ItemTypePrecondition
from zope.app.container.constraints import ContainerTypesConstraint
-from zope.app.security.interfaces import IAuthenticationService, IPrincipal
+from zope.app.security.interfaces import IAuthentication, IPrincipal
from zope.interface import Interface
from zope.schema import Text, TextLine, Password, Field
@@ -74,7 +74,7 @@
"""
-class IPluggableAuthenticationService(IAuthenticationService, IContainer):
+class IPluggableAuthenticationService(IAuthentication, IContainer):
"""An `AuthenticationService` that can contain multiple pricipal sources.
"""
More information about the Zope3-Checkins
mailing list