/usr/share/pyshared/albatross/fcgiappold.py is in python-albatross 1.36-5.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #
# Copyright 2003 by Object Craft P/L, Melbourne, Australia.
#
# LICENCE - see LICENCE file distributed with this software for details.
#
# AUTHOR(S)
# Matt Goodall <matt AT pollenation DOT net>
import fcgi
from albatross import cgiapp
class Request(cgiapp.Request):
def __init__(self, fields = None):
self.__fcgi = fcgi.FCGI()
if fields is None:
fields = self.__fcgi.getFieldStorage()
cgiapp.Request.__init__(self, fields)
def get_param(self, key, default=None):
return self.__fcgi.env.get(key, default)
def return_code(self):
self.__fcgi.Finish()
def running():
return fcgi.isFCGI()
|