Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
ATContentTypes.tests.utils.DummySessionDataManager Class Reference
Inheritance diagram for ATContentTypes.tests.utils.DummySessionDataManager:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.tests.utils.DummySessionDataManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def manage_afterAdd
def getSessionData
def hasSessionData
def getSessionDataByKey
def getBrowserIdManager

Public Attributes

 session

Static Public Attributes

tuple security = ClassSecurityInfo()
string id = 'session_data_manager'

Detailed Description

Dummy sdm for sessioning

Uses traversal hooks to add the SESSION object as lazy item to the request

Definition at line 52 of file utils.py.


Constructor & Destructor Documentation

Definition at line 63 of file utils.py.

00063 
00064     def __init__(self):
00065         self.session = FakeRequestSession()
        

Member Function Documentation

Definition at line 85 of file utils.py.

00085 
00086     def getBrowserIdManager(self):
00087         """ """
00088         # dummy
00089         return self
00090 
00091 InitializeClass(DummySessionDataManager)

Definition at line 73 of file utils.py.

00073 
00074     def getSessionData(self, create=1):
00075         """ """
00076         return self.session
    

Definition at line 81 of file utils.py.

00081 
00082     def getSessionDataByKey(self, key):
00083         """ """
00084         return self.session
    

Definition at line 77 of file utils.py.

00077 
00078     def hasSessionData(self):
00079         """ """
00080         return True
    
Register traversal hooks to add SESSION to request

Definition at line 66 of file utils.py.

00066 
00067     def manage_afterAdd(self, item, container):
00068         """Register traversal hooks to add SESSION to request
00069         """
00070         parent = self.aq_inner.aq_parent
00071         hook = DummySDMTraverseHook()
00072         registerBeforeTraverse(parent, hook, 'SessionDataManager', 50)


Member Data Documentation

string ATContentTypes.tests.utils.DummySessionDataManager.id = 'session_data_manager' [static]

Definition at line 61 of file utils.py.

Definition at line 57 of file utils.py.

Definition at line 64 of file utils.py.


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