Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
Archetypes.tests.utils.DummySessionDataManager Class Reference
Inheritance diagram for Archetypes.tests.utils.DummySessionDataManager:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.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 213 of file utils.py.


Constructor & Destructor Documentation

Definition at line 224 of file utils.py.

00224 
00225     def __init__(self):
00226         self.session = FakeRequestSession()
        

Member Function Documentation

Definition at line 246 of file utils.py.

00246 
00247     def getBrowserIdManager(self):
00248         """ """
00249         # dummy
00250         return self
00251 
00252 InitializeClass(DummySessionDataManager)

Definition at line 234 of file utils.py.

00234 
00235     def getSessionData(self, create=1):
00236         """ """
00237         return self.session
    

Definition at line 242 of file utils.py.

00242 
00243     def getSessionDataByKey(self, key):
00244         """ """
00245         return self.session
    

Definition at line 238 of file utils.py.

00238 
00239     def hasSessionData(self):
00240         """ """
00241         return True
    
def Archetypes.tests.utils.DummySessionDataManager.manage_afterAdd (   self,
  item,
  container 
)
Register traversal hooks to add SESSION to request

Definition at line 227 of file utils.py.

00227 
00228     def manage_afterAdd(self, item, container):
00229         """Register traversal hooks to add SESSION to request
00230         """
00231         parent = self.aq_inner.aq_parent
00232         hook = DummySDMTraverseHook()
00233         registerBeforeTraverse(parent, hook, 'SessionDataManager', 50)


Member Data Documentation

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

Definition at line 222 of file utils.py.

tuple Archetypes.tests.utils.DummySessionDataManager.security = ClassSecurityInfo() [static]

Definition at line 218 of file utils.py.

Definition at line 225 of file utils.py.


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