All,

        I'm a bit confused.  I have two files

test_ajax_mod_wsgi.html
hello_server.wsgi

And I'm not getting what I expect.  I get this error

XML response error
Content-type:text/plain

Response: #!/usr/local/bin/python3 import sys import time def index(req): s = " 
" return s


when I send an AJAX request to the server.  This is the output of the access_log

141.232.2.115 - - [08/Feb/2010:10:06:28 -0500] "GET 
/netboss/test_ajax_mod_python.html HTTP/1.1" 200 3183
141.232.2.115 - - [08/Feb/2010:10:06:31 -0500] "POST /netboss/hello_server.wsgi 
HTTP/1.1" 200 154

It appears that my understanding is incomplete since instead of getting XML 
which shows the fixed time I get the above error.  Here is the 
hello_server.wsgi script

#! /usr/local/bin/python3

import sys
import time

def index(req):
        s = "<?xml version=\"1.0\"?> <server time=\"2010-02004 
12:00:00\"></server>"
        return s

I'm basing this on the code from van der mewes http://vandermerwe.co.nz/?p=9, 
which was written for mod_python, but I don't see a reason it shouldn't work.
Your help in understanding this is appreciated.

Thanks,
Joe

-- 
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.

Reply via email to