Methods
|
|
|
|
__init__
|
__init__ ( self, pcgifile )
|
|
checkImports
|
checkImports ( self )
|
|
checkPCGIValues
|
checkPCGIValues ( self )
|
|
checkRequiredKeys
|
checkRequiredKeys ( self )
Check for the required PCGI keys.
|
|
checkSockets
|
checkSockets ( self )
Check for possible socket-related error conditions.
|
|
checkWritePermissions
|
checkWritePermissions ( self )
Check write permissions for PCGI_SOCKET_FILE, PCGI_PID_FILE, and
(if specified) PCGI_ERROR_LOG.
|
|
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:
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
|
|
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 )
|