Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
PluggableAuthService.plugins.RequestTypeSniffer.RequestTypeSniffer Class Reference
Inheritance diagram for PluggableAuthService.plugins.RequestTypeSniffer.RequestTypeSniffer:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.plugins.RequestTypeSniffer.RequestTypeSniffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def sniffRequestType

Public Attributes

 id
 title

Static Public Attributes

string meta_type = 'Request Type Sniffer Plugin'
tuple security = ClassSecurityInfo()

Private Attributes

 _id

Detailed Description

PAS plugin for detecting a Request's type

Definition at line 72 of file RequestTypeSniffer.py.


Constructor & Destructor Documentation

Definition at line 80 of file RequestTypeSniffer.py.

00080 
00081     def __init__(self, id, title=None):
00082 
00083         self._id = self.id = id
00084         self.title = title


Member Function Documentation

Definition at line 86 of file RequestTypeSniffer.py.

00086 
00087     def sniffRequestType(self, request):
00088         found = None
00089         for iface, func in _sniffers:
00090             if func( request ):
00091                 found = iface
00092 
00093         if found is not None:
00094             return found
00095 
00096 classImplements(RequestTypeSniffer,
00097                 IRequestTypeSnifferPlugin,
00098                 IRequestTypeSniffer,
00099                )
00100 
00101 InitializeClass(RequestTypeSniffer)
00102 
00103 # Most of the sniffing code below has been inspired by
# similar tests found in BaseRequest, HTTPRequest and ZServer

Here is the call graph for this function:


Member Data Documentation

Definition at line 82 of file RequestTypeSniffer.py.

Definition at line 82 of file RequestTypeSniffer.py.

Definition at line 76 of file RequestTypeSniffer.py.

Definition at line 78 of file RequestTypeSniffer.py.

Definition at line 83 of file RequestTypeSniffer.py.


The documentation for this class was generated from the following file: