Package wtf :: Package opi :: Class OPIInterface
[hide private]
[frames] | no frames]

Class OPIInterface

source code

object --+
         |
        OPIInterface

Interface for OPI implementations
Instance Methods [hide private]
 
__init__(self, config, opts, args)
Initialization
source code
 
work(self)
Invoke the worker mechanism (if any)
source code

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

Class Variables [hide private]
    Running Modes
int MODE_FORKED = 1
forked mode
int MODE_ONCE = 3
run-once mode (like CGI)
int MODE_SINGLE = 2
single process mode
int MODE_THREADED = 0
multithreaded mode
Instance Variables [hide private]
wtf.config.Config config
The application config
int mode
The running mode (one of the Running Modes)
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) - The application config
  • opts (optparse.OptionContainer) - Command line option container
  • args (list) - Fixed commandline arguments
Overrides: object.__init__

work(self)

source code 

Invoke the worker mechanism (if any)

This starts handling the incoming request(s)