[XML-SIG] Two SimpleXMLRPCServer questions

Brian Quinlan brian@sweetapp.com
Mon, 10 Mar 2003 10:53:58 -0800


> What I would like to do is pass this file name into the script that
starts
> up the server as a command-line parameter.  I can't figure out how to
get
> this file name and give it to the class so the _dispatch has access to
it.

I take it that you don't want to use a global variable or examine
sys.argv in _dispatch?

> Won't this only work if the do_POST is running?

do_POST is the only code, in the handle_request code path, with a bare
except clause (except handle_request itself which just does a bit of
cleanup).
 
Cheers,
Brian