Hi,
I'm trying to make a python script run on PAMP, I installed the latest version yesterday on my N95 8GB.
The script should fetch the positioning data and output it either in JSON or XML.
My test code looks like this:
Running on the server produces this output:Code:"file test.py" def handler(req): from mod_python import apache, util import positioning req.content_type = 'text/plain' req.encoding = "UTF-8" request_data = util.FieldStorage(req) try: positioning.set_requestors([{"type":"service","format":"application","data":"test"}]) req.write( positioning.modules() ) except KeyError: req.write("failed") return apache.OK
I have browsed through a lot of documentation, but without getting the help I need, so I hope someone in here might help me out. I guess the application has to be signed, but how do I do that with a python script on PAMP?Code:<pre> Mod_python error: "PythonHandler test" Traceback (most recent call last): File "c:\resource\mod_python\apache.py", line 395, in HandlerDispatch result = object(req) File "E:/data/apache/htdocs/PAMP/test.py", line 16, in handler positioning.set_requestors([{"type":"service","format":"application","data":"test"}]) File "c:\resource\positioning.py", line 74, in set_requestors _positioner.set_requestors(requestors) SymbianError: [Errno -46] KErrPermissionDenied </pre>
BR Xotonium


Sorry about the oversight.

