Back to index

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

List of all members.

Public Member Functions

def __init__
def extractCredentials

Public Attributes

 title

Static Public Attributes

string meta_type = 'Cookie Crumbling Plugin'
tuple security = ClassSecurityInfo()

Private Member Functions

def _getCC

Detailed Description

Multi-plugin for injecting HTTP Basic Authentication
credentials from form credentials.

Definition at line 52 of file crumbler.py.


Constructor & Destructor Documentation

def PlonePAS.plugins.crumbler.CookieCrumblingPlugin.__init__ (   self,
  id,
  title = None 
)

Definition at line 60 of file crumbler.py.

00060 
00061     def __init__(self, id, title=None):
00062         self._setId(id)
00063         self.title = title

Here is the call graph for this function:


Member Function Documentation

Definition at line 64 of file crumbler.py.

00064 
00065     def _getCC(self):
00066         return getattr(aq_base(self), CC_ID, None)

Here is the caller graph for this function:

Extract basic auth credentials from 'request'.

Definition at line 68 of file crumbler.py.

00068 
00069     def extractCredentials(self, request):
00070         """ Extract basic auth credentials from 'request'.
00071         """
00072 
00073         try:
00074             self._getCC().modifyRequest(request, request.RESPONSE)
00075 
00076         except Exception, e:
00077             import logging
00078             logger = logging.getLogger('Plone')
00079             logger.error("PlonePAS error: %s", e, exc_info=1)
00080 
00081         return {}
00082 
00083 classImplements(CookieCrumblingPlugin,
00084                 IExtractionPlugin)
00085 
00086 InitializeClass(CookieCrumblingPlugin)

Here is the call graph for this function:


Member Data Documentation

string PlonePAS.plugins.crumbler.CookieCrumblingPlugin.meta_type = 'Cookie Crumbling Plugin' [static]

Definition at line 56 of file crumbler.py.

tuple PlonePAS.plugins.crumbler.CookieCrumblingPlugin.security = ClassSecurityInfo() [static]

Definition at line 58 of file crumbler.py.

Definition at line 62 of file crumbler.py.


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