- just what is it for ?

Richard Shea richardshea at
Fri Dec 17 11:32:33 CET 2004

Hi - This is probably quite a stupid question but I've never
understood what does. I've got a situation at the moment
where I would like to use a script (which someone else has written and
made available) to do CGI on a shared webserver to which I do not have
shell access.

The install instructions say "run python" but as far as I'm
aware I cannot do that.

There is only one script involved (except for the !) and so
I'm probably just going to copy it into my cgi-bin and give it a go
but I'd like to know for future reference just how bad could it be if
I did this ? Are there circumstances where you must use to
have any hope of the code working ?

BTW here is the in question ...

from distutils.core import setup

classifiers = """\
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI
import sys
if sys.version_info < (2, 3):
    _setup = setup
    def setup(**kwargs):
        if kwargs.has_key("classifiers"):
            del kwargs["classifiers"]

        maintainer="Anders Pearson",
        maintainer_email="anders at",
        url = "",
        license = "",
        platforms = ["any"],
        description = "CGI and mod_python MVC application framework",
        long_description = """framework for building MVC CGI and
        applications. based on the perl CGI::Application module but
        classifiers = filter(None, classifiers.split("\n")))

... I would appreciate any information about this (or any tips on how
to deal with no shell access).



More information about the Python-list mailing list