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

Class StorageFactoryInterface

source code

object --+
         |
        StorageFactoryInterface

Interface for storage factories
Instance Methods [hide private]
 
__init__(self, config, opts, args)
Initialization
source code
StorageInterface
__call__(self, request)
Factory function: Create request-bound storage object
source code
StorageInterface
from_sid(self, sid)
Factory function: Create sid-bound storage object
source code
any
status(self)
Fetch status information from storage factory
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config, opts, args)
(Constructor)

source code 
Initialization
Parameters:
  • config (wtf.config.Config) - Configuration
  • opts (optparse.OptionContainer) - Command line options
  • args (list) - Positional command line arguments
Overrides: object.__init__

__call__(self, request)
(Call operator)

source code 
Factory function: Create request-bound storage object
Parameters:
Returns: StorageInterface
The new storage instance

from_sid(self, sid)

source code 
Factory function: Create sid-bound storage object
Parameters:
  • sid (str) - Session ID
Returns: StorageInterface
The new storage instance

status(self)

source code 
Fetch status information from storage factory
Returns: any
Status information, see specific implementation for details