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
Collaboration diagram for PluggableAuthService.plugins.RequestTypeSniffer.RequestTypeSniffer:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def sniffRequestType

Public Attributes


Static Public Attributes

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

Private Attributes


Detailed Description

PAS plugin for detecting a Request's type

Definition at line 72 of file

Constructor & Destructor Documentation

Definition at line 80 of file

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

Member Function Documentation

Definition at line 86 of file

00087     def sniffRequestType(self, request):
00088         found = None
00089         for iface, func in _sniffers:
00090             if func( request ):
00091                 found = iface
00093         if found is not None:
00094             return found
00096 classImplements(RequestTypeSniffer,
00097                 IRequestTypeSnifferPlugin,
00098                 IRequestTypeSniffer,
00099                )
00101 InitializeClass(RequestTypeSniffer)
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

Definition at line 82 of file

Definition at line 76 of file

Definition at line 78 of file

Definition at line 83 of file

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