CVS: Products/PluggableAuthService/interfaces - request.py:1.2 authservice.py:1.5.2.1 plugins.py:1.8.2.1 propertysheets.py:1.3.16.1

Sidnei da Silva <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Update of /cvs-repository/Products/PluggableAuthService/interfaces
In directory cvs.zope.org:/tmp/cvs-serv22686/interfaces

Modified Files:
      Tag: sidnei-challenge-protocol-chooser
	authservice.py plugins.py propertysheets.py 
Added Files:
	request.py 
Log Message:

- Update to HEAD, had branched from an old version
- Move more stuff to use zope.interface
- Don't assume because zope.interface can be imported that Five can be imported too


=== Products/PluggableAuthService/interfaces/request.py 1.1 => 1.2 ===
--- /dev/null	Tue Aug 16 18:21:32 2005
+++ Products/PluggableAuthService/interfaces/request.py	Tue Aug 16 18:21:01 2005
@@ -0,0 +1,58 @@
+##############################################################################
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights
+# Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+""" Interfaces for PluggableAuthService
+
+$Id$
+"""
+# Eventually, those interfaces should be moved to Zope and imported
+# here as aliases for backward compatibility.
+
+try:
+    from zope.interface import Interface
+except ImportError:
+    from Interface import Interface
+
+class IRequest( Interface ):
+
+    """ Base Request Interface
+
+    XXX Add methods from BaseRequest?
+    """
+
+class IHTTPRequest( IRequest ):
+
+    """ HTTP Request
+    """
+
+class IBrowserRequest( IHTTPRequest ):
+
+    """Browser Request
+    """
+
+class IWebDAVRequest( IHTTPRequest ):
+
+    """ WebDAV Request
+    """
+
+class IXMLRPCRequest( IHTTPRequest ):
+
+    """ XML-RPC Request
+    """
+
+class IFTPRequest( IRequest ):
+
+    """ FTP Request
+    """
+    


=== Products/PluggableAuthService/interfaces/authservice.py 1.5 => 1.5.2.1 ===
--- Products/PluggableAuthService/interfaces/authservice.py:1.5	Fri May 27 14:55:44 2005
+++ Products/PluggableAuthService/interfaces/authservice.py	Tue Aug 16 18:21:01 2005
@@ -17,7 +17,10 @@
 $Id$
 """
 
-from Interface import Interface
+try:
+    from zope.interface import Interface
+except ImportError:
+    from Interface import Interface
 from AccessControl.ZopeSecurityPolicy import _noroles
 
 


=== Products/PluggableAuthService/interfaces/plugins.py 1.8 => 1.8.2.1 ===
--- Products/PluggableAuthService/interfaces/plugins.py:1.8	Wed Jul  6 14:48:02 2005
+++ Products/PluggableAuthService/interfaces/plugins.py	Tue Aug 16 18:21:01 2005
@@ -430,6 +430,31 @@
           scaling issues for some implementations.
         """
 
+class IRequestTypeSniffer( Interface ):
+
+    """ Given a request, detects the request type for later use by other plugins.
+    """
+    def sniffRequestType( request ):
+        """ Return a interface identifying what kind the request is.
+        """
+
+class IChallengeProtocolChooser( Interface ):
+
+    """ Choose a proper set of protocols to be used for challenging
+    the client given a request.
+    """
+    def chooseProtocols( request ):
+        """ -> ( protocol_1, ... protocol_N) | None
+        
+        o If a set of protocols is returned, the first plugin with a
+            protocol that is in the set will define the protocol to be
+            used for the current request.
+
+        o If None is returned, the 'first found protocol' wins.
+
+        o Once the protocol is decided, all challenge plugins for that
+            protocol will be executed.
+        """
 #
 #   XXX:  Do we need a LocalRoleAlgorithm plugin type?  E.g., base_cms
 #         has two different algorithms, based on whether or not the


=== Products/PluggableAuthService/interfaces/propertysheets.py 1.3 => 1.3.16.1 ===
--- Products/PluggableAuthService/interfaces/propertysheets.py:1.3	Thu Aug 12 11:15:54 2004
+++ Products/PluggableAuthService/interfaces/propertysheets.py	Tue Aug 16 18:21:01 2005
@@ -17,7 +17,10 @@
 $Id$
 """
 
-from Interface import Interface
+try:
+    from zope.interface import Interface
+except ImportError:
+    from Interface import Interface
 
 class IPropertySheet( Interface ):
 

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.