Re: Newbie XML Output question

2006-09-04 Thread kryten21
Sorry, there should be no "req.write(file)" there. > def get_request(req): > if req.method == 'GET': > req.content_type = "text/xml" > req.sendfile(LOCAL_FILE) > req.write(file) > return apache.OK > -- http://mail.python.org/mailma

Newbie XML Output question

2006-09-04 Thread kryten21
Hi, I was wondering if someone could help me with a problem I've been having with mod-python and a javascript application I'm running. When I run a GET on the actual XML file from the javascript, I can easily parse the file. However, when I use a mod-python handler and run this code: LOCAL_FILE