Graham Dumpleton
grahamd at dscpl.com.au
Sat Apr 30 00:53:26 EDT 2005
On 30/04/2005, at 10:01 AM, Graeme Matthew wrote: > If content_type == "html": > controller.process(http_string) > elif content_type == "xml": > controller.process(http_string) > else: > pass > #handle invalid request type > > Any assistance is appreciated FWIW, you would be better off having each on a different URL and select based on URL rather than trying to have some magic switch based on what the incoming content type is. Remember that both SOAP and XML-RPC are incoming content type of "text/xml", so how are you going to know when it is one or the other if everything comes in through the one URL. Also, when you say CGI, do you really mean any GET/POST where form parameters are being processed? There are better ways in mod_python of doing things than using CGI style handlers. Graham
|