[mod_python] How declared correctly the way in the pg.html to the apache server can resolv the script python correctly

EdgardCosta edgardalvescosta at gmail.com
Mon Nov 19 16:46:49 EST 2007


Graham

I made some modifications and get this messeage on browser when a set
this: http://edgardalvescosta.no-ip.org/python/testepython.py/form1 

MOD_PYTHON ERROR

ProcessId: 9376
Interpreter: '127.0.1.1'

ServerName: '127.0.1.1'
DocumentRoot: '/net/www/'

URI: '/python/testepython.py/form1'
Location: None
Directory: '/net/www/python/'
Filename: '/net/www/python/testepython.py'
PathInfo: '/form1'

Phase: 'PythonHandler'
Handler: 'mod_python.publisher'

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1229, in _process_target
result = _execute_target(config, req, object, arg)

File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1128, in _execute_target
result = object(arg)

File "/usr/lib/python2.5/site-packages/mod_python/publisher.py",
line 213, in handler
published = publish_object(req, object)

File "/usr/lib/python2.5/site-packages/mod_python/publisher.py",
line 425, in publish_object
return publish_object(req,util.apply_fs_data(object, req.form,
req=req))

File "/usr/lib/python2.5/site-packages/mod_python/util.py", line
554, in apply_fs_data
return object(**args)

TypeError: form1() takes exactly 3 non-keyword arguments (1 given)


MODULE CACHE DETAILS

Accessed: Mon Nov 19 13:51:21 2007
Generation: 0

_mp_59ea5b85ba1103bcdaa0f7734753b861 {
FileName: '/net/www/python/testepython.py'
Instance: 1 [IMPORT]
Generation: 1
Modified: Mon Nov 19 12:56:29 2007
Imported: Mon Nov 19 13:51:21 2007
}

This lines show some clues??

EdgardCosta



More information about the Mod_python mailing list