Graham Dumpleton
graham.dumpleton at gmail.com
Mon Nov 19 16:55:38 EST 2007
You didn't supply any form arguments using a query string at the end of the URL like I said you should. You may want to do some research on the difference between form posts using GET vs POST. The publisher handler will accept either. The names of the form arguments, which in your case there appear to be 2, would be whatever you called the function parameters of your published function. Since you have not even shown the prototype of your published form function I have no idea what they are. Graham On 20/11/2007, EdgardCosta <edgardalvescosta at gmail.com> wrote: > 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 > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|