/usr/share/pyshared/quixote/server/fastcgi_server.py is in python-quixote 2.7~b2-1+b2.
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 | #!/usr/bin/env python
"""Server for Quixote applications that use FastCGI. It should work
for CGI too but the cgi_server module is preferred as it is more
portable.
"""
from quixote.server import _fcgi
def run(create_publisher):
publisher = create_publisher()
while _fcgi.isFCGI():
f = _fcgi.FCGI()
response = publisher.process(f.inp, f.env)
try:
response.write(f.out)
except IOError, err:
publisher.log("IOError while sending response ignored: %s" % err)
f.Finish()
if __name__ == '__main__':
from quixote.demo import create_publisher
run(create_publisher)
|