Newbie XML Output question

kryten21 ethanton at gmail.com
Mon Sep 4 05:56:39 EDT 2006


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
>




More information about the Python-list mailing list