[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IUnauthenticatedPrincipal.py:1.1 IAuthenticationService.py:1.4

Jim Fulton jim@zope.com
Mon, 15 Jul 2002 18:01:41 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv3603/lib/python/Zope/App/Security

Modified Files:
	IAuthenticationService.py 
Added Files:
	IUnauthenticatedPrincipal.py 
Log Message:
Added logic to the ZopePublication object to handle placeful
authentication services.

Fixed some bugs in the service manager and made the mapping
implementation there handle only local services.

Refactored the tests in ZopePublication to push some of the
browser-specific tests down to the Browser package.



=== Added File Zope3/lib/python/Zope/App/Security/IUnauthenticatedPrincipal.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""
$Id: IUnauthenticatedPrincipal.py,v 1.1 2002/07/15 22:01:10 jim Exp $
"""

from IPrincipal import IPrincipal

class IUnauthenticatedPrincipal(IPrincipal):
    """A principal that hasn't been authenticated.

    Authenticated principals are preferable to UnauthenticatedPrincipals.
    """

__doc__ = IUnauthenticatedPrincipal.__doc__ + __doc__


=== Zope3/lib/python/Zope/App/Security/IAuthenticationService.py 1.3 => 1.4 ===
         """
 
     def unauthenticatedPrincipal():
-        """
-        Return the id of the unauthenticated principal, if one is defined;
-        return None if no unauthenticated principal is defined.
+        """Return the id of the unauthenticated principal, if one is defined.
+        
+        Return None if no unauthenticated principal is defined.
+
+        The unauthenticated principal must be an IUnauthenticatedPrincipal.
         """
         
     def unauthorized(id, request):