Table of Contents

Class: PcgiFile Zope-2.2.1-src/pcgi/Util/pcgifile.py

Methods   
__init__
checkImports
checkPCGIValues
checkRequiredKeys
checkSockets
checkWritePermissions
environList
getPcgiWrapperVersion
isexecutable
lookupPCGIPublisher
pathperm
readInfoFile
  __init__ 
__init__ ( self,  pcgifile )

  checkImports 
checkImports ( self )

Exceptions   
PcgiFileException
  checkPCGIValues 
checkPCGIValues ( self )

Exceptions   
PcgiFileException
  checkRequiredKeys 
checkRequiredKeys ( self )

Check for the required PCGI keys.

Exceptions   
PcgiFileException
  checkSockets 
checkSockets ( self )

Check for possible socket-related error conditions.

Exceptions   
PcgiFileException
  checkWritePermissions 
checkWritePermissions ( self )

Check write permissions for PCGI_SOCKET_FILE, PCGI_PID_FILE, and (if specified) PCGI_ERROR_LOG.

Exceptions   
PcgiFileException
  environList 
environList ( self )

return a sorted list of how the environment would likely appear if run through the pcgi-wrapper.

  getPcgiWrapperVersion 
getPcgiWrapperVersion ( self )

Execute pcgi-wrapper with no arguments and grab the version id.

  isexecutable 
isexecutable (
        self,
        path,
        real=None,
        )

  lookupPCGIPublisher 
lookupPCGIPublisher ( self )

The most efficient way for pcgi-wrapper to determine which pcgi_publisher to use is for the pcgi info file to specify it with the PCGI_PUBLISHER directive. Using the PCGI_PUBLISHER is arguably the best method, as pcgi-wrapper will find it quicker than otherwise. Still, in the interest of flexibility, pcgi-wrapper will attempt to locate pcgi_publisher using the following rules:

  1. PCGI_PUBLISHER (best)

Rules 2-5, look in the paths below for files named: pcgi_publisher.py, pcgi_publisher.pyc, pcgi_publisher.pyo, pcgi_publisher. 2. PCGI_INSERT_PATH, if available 3. PYTHONPATH, if available 4. Look in the directory of PCGI_MODULE_PATH 5. Look in the directory of the pcgi info file

Exceptions   
PcgiFileException
  pathperm 
pathperm (
        self,
        path,
        real=None,
        )

Returns a 3-tuple of booleans indicating whether the process has (read, write, execute) permission. A true value for the real argument indicates the test should occur for the real id rather than the effective id.

  readInfoFile 
readInfoFile ( self )

Exceptions   
PcgiFileException

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6