Package wtf :: Package app :: Package services :: Module session :: Class SessionFactory
[hide private]
[frames] | no frames]

Class SessionFactory

source code

object --+
         |
        SessionFactory

Intermediate session object factory
Instance Methods [hide private]
 
__init__(self, storage, start_response)
Initialization
source code
Session
__call__(self, request)
Factory function
source code
 
start_response(self, status, response_headers, exc_info=None)
Session dealing start_response callable
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
StorageAdapter _adapter = None
Storage adapter (maybe None if the session is not queried)
callable _start_response
original WSGI start_response callable
callable _storage
Storage factory (takes the request object)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, storage, start_response)
(Constructor)

source code 
Initialization
Parameters:
  • storage (callable) - Storage factory (takes the request object)
  • start_response (callable) - Original start_response callable
Overrides: object.__init__

__call__(self, request)
(Call operator)

source code 
Factory function
Parameters:
Returns: Session
Session object

start_response(self, status, response_headers, exc_info=None)

source code 

Session dealing start_response callable

See Also: WSGI spec