Table of Contents

Class: ICmdLineAppFactory ./src/peak/running/interfaces.py

Class interface for creating ICmdLineApp components

A command-line app object is created with keyword arguments for stdin, stdout, stderr, environ, and argv. It is free to use default values for items not supplied, but it must not bypass or override any values which are supplied. E.g. it should never write to sys.stdin. The purpose of this encapsulation is to allow application objects to be composed by other application objects, and to also allow "server" invocations of applications, as is needed for protocols like FastCGI and ReadyExec.

Base Classes   
IComponentFactory
IExecutable
    Interface
Methods   
__call__
  __call__ 
__call__ (
        parentComponent,
        componentName=None,
        argv=sys.argv,
        stdin=sys.stdin,
        stdout=sys.stdout,
        stderr=sys.stderr,
        environ=os.environ,
        **otherAttrs,
        )

Create a new "command-line" application instance


Table of Contents

This document was automatically generated on Tue Feb 17 19:55:49 2004 by HappyDoc version 2.1