David Jackson
davidj411 at gmail.com
Tue Dec 23 16:09:34 EST 2008
is this the section of docs you wanted me to review? "If req.filename is empty, the module name defaults to 'index'.Once module is imported, the remaining part of the URI up to the beginning of any query data (a.k.a. PATH INFO) is used to find an object within the module. The Publisher handler traverses the path, one element at a time from left to right, mapping the elements to Python object within the module. <-this sentence is lost on me If no path info was given in the URL, the Publisher handler will use the default value of 'index'. If the last element is an object inside a module, and the one immediately preceding it is a directory (i.e. no module name is given), then the module name will also default to 'index'." as for the versions of python that work with mod_python: os:winXP loading (win32 pre-compiled modules, not compiling apache. mod_python gives error during windows installation if it can not find registry entry for python 2.5. i was unable to find a binary mod_python MSI installer that would work for python 2.6. if there is a binary ready to download, please advise on download location. regarding 2.5.2 versus 2.5, i rolled back to 2.5.0 when i saw this in the error.log [Tue Dec 23 11:51:00 2008] [error] python_init: Python version mismatch, expected '2.5', found '2.5.2'. b/c of this, i was not sure how well it would work , especially with my being new to mod_python.you answered that this error message means nothing. thanks! On Tue, Dec 23, 2008 at 3:19 PM, Graham Dumpleton < graham.dumpleton at gmail.com> wrote: > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20081223/5e7f6490/attachment.html
|