2009/8/18 Graham Dumpleton <[email protected]>: > 2009/8/18 Graham Dumpleton <[email protected]>: >> 2009/8/16 gert <[email protected]>: >>> >>> this does not show any error messages in apache log ? >>> >>> [Sun Aug 16 14:57:12 2009] [info] [client 192.168.2.17] mod_wsgi >>> (pid=5791, process='www', application=''): Loading WSGI script '/usr/ >>> httpd/www/appwsgi/wsgi/upload2.wsgi'. >>> >>> import os,sys >>> def application(environ, response): >>> #query=environ.get['QUERY_STRING'] >>> query=os.path.join(os.path.dirname(__file__),'teeeeeeeeeemp') >>> print('query=',query,file=sys.stderr) >>> range=environ.get('HTTP_RANGE','bytes=0-').replace >>> ('bytes=','').split(',') >>> offset=[] >>> for r in range: offset.append(r.split('-')) >>> with open(query,'wb') as f >> >> You are missing a ':' on end of preceding line. > > FWIW, the underlying problem is possibly a bug in Python 3.X. Am still > trying to verify this. > > The Python parsing routine is returning NULL indicating it failed to > parse the code, but doesn't appear to have set the Python exception > state as it should. This behaviour is different to Python 2.X. > > For now, I have added an extra message in error logs indicating a > parsing error, but no details of what the parsing error will be > logged.
Gert, fixed. Try trunk again. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
