[mod_python] A question

ManuelDuránAguete manuel at aguete.org
Tue Apr 8 17:35:11 EST 2003


Hello,
	I'm implementing a XMLRPC dispatcher with mod_python, it's almost done,
but after a few petitions the script crashed with internal server error.
The problem it's in apache.py in method import_module.

#        if not file or (path and not os.path.dirname(file) in path):
#                raise SERVER_RETURN, HTTP_NOT_FOUND

if I comment these lines it seems to work ok. Printing the variables in
if I get: 
[Tue Apr  8 16:03:53 2003] [notice] mod_python: Going to import cosa
from ['/home/manuel/public_html/python/']: <module 'cosa' from
'/home/manuel/public_html/python/cosa.py'>
 mod_python: File is /home/manuel/public_html/python/cosa.py Path is
['/home/manuel/public_html/python/'] Dirname:
/home/manuel/public_html/python

I'm usign mod_python 2.7.8 with python 2.1.3 under Debian Gnu/Linux with
apache 1.3.26

Any idea what's happening ?

								Regards.
-- 
Manuel Durán Aguete <manuel at aguete.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20030408/f80ef813/attachment-0003.bin


More information about the Mod_python mailing list