Package wtf :: Package app :: Module dispatcher :: Class Dispatcher
[hide private]
[frames] | no frames]

Class Dispatcher

source code

object --+
         |
        Dispatcher

Main dispatching loop
Instance Methods [hide private]
 
__init__(self, config, opts, args)
Initialization
source code
 
__call__(self, environ, start_response)
WSGI entry point
source code

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

Instance Variables [hide private]
list args
Positioned command line arguments
wtf.config.Config config
Configuration
optparse.OptionContainer opts
Command line options
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) - Positioned command line arguments
Overrides: object.__init__

__call__(self, environ, start_response)
(Call operator)

source code 
WSGI entry point
Parameters:
  • environ (dict) - WSGI environment
  • start_response (callable) - Response starter callable