Graham Dumpleton
graham.dumpleton at gmail.com
Tue Dec 23 15:19:41 EST 2008
2008/12/24 David Jackson <davidj411 at gmail.com>: > if using this config: > <...snipped> > SetHandler mod_python > PythonHandler mod_python.publisher > PythonDebug On > </Directory> > > do i always need to call the function in the URL? > > for example, testscript.py has a function called "writename". > must i call testscript.py using > http://localhost/pycgi/testscript.py/writename or could i add something to > the contents of the file like you can when testing a script from command > line like this: > > if __name__=="__main__": > writeback(names) > > > basically, i am trying to avoid putting the function name into the URL. Look up how the 'index' function works in the documentation. > also, i noticed that the newest version of mod_python ONLY supports python > 2.5.0. i had errors with 2.5.2 What platform, what errors and is this compiling it from source code? There have not been any problem reports saying it doesn't work with Python 2.5.2. If using precompiled binaries, for Python 2.5 you may see warnings about a version mismatch at runtime in error logs, but that can be ignored. > and would not install with python 2.6. Again, what platform, what errors and is this compilng from source code? There have not been any problem reports saying it doesn't work with Python 2.6. Graham
|