Skip to content

Commit

Permalink
Fixed a couple functional tests.
Browse files Browse the repository at this point in the history
Tried to remove the service terminology from the code as much as 
possible.
  • Loading branch information
strichter committed Jan 12, 2005
1 parent 0581275 commit e5e9fe3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ class IAuthenticationUtility(Interface):
issuing challenges or providing login interfaces.
`IAuthenticationUtility` objects are used to implement authentication
utilities. Because they implement services, they are expected to
collaborate with services in other contexts. Client code doesn't search a
context and call multiple services. Instead, client code will call the
most specific service in a place and rely on the service to delegate to
other services as necessary.
utilities. Because they implement utilities, they are expected to
collaborate with utilities in other contexts. Client code doesn't search a
context and call multiple utilities. Instead, client code will call the
most specific utility in a place and rely on the utility to delegate to
other utilities as necessary.
The interface doesn't include methods for data management. Services may
The interface doesn't include methods for data management. Utilities may
use external data and not allow management in Zope. Simularly, the data to
be managed may vary with different implementations of a service.
be managed may vary with different implementations of a utility.
"""

def authenticate(request):
Expand Down Expand Up @@ -96,10 +96,10 @@ def unauthorized(id, request):
as issuing an HTTP authentication challenge or
displaying a login interface.
Note that the authentication service nearest to the
Note that the authentication utility nearest to the
requested resource is called. It is up to
authentication service implementations to
collaborate with services higher in the object
authentication utility implementations to
collaborate with utilities higher in the object
hierarchy.
If no principal has been identified, id will be
Expand All @@ -113,9 +113,9 @@ def getPrincipal(id):
id. A PrincipalLookupError is raised if the principal cannot be
found.
Note that the authentication service nearest to the requested
resource is called. It is up to authentication service
implementations to collaborate with services higher in the
Note that the authentication utility nearest to the requested
resource is called. It is up to authentication utility
implementations to collaborate with utilities higher in the
object hierarchy.
"""

Expand Down
2 changes: 1 addition & 1 deletion vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __contains__(self, id):
principal. Whether the utility consults other utilities to give an
answer is up to the utility itself.
First we need to create a dummy service that will return a user, if
First we need to create a dummy utility that will return a user, if
the id is 'bob'.
>>> class DummyUtility:
Expand Down

0 comments on commit e5e9fe3

Please sign in to comment.