[Twisted-web] Run Nevow and XMLRPC on a single port?

Phil Mayers p.mayers at imperial.ac.uk
Thu Dec 14 05:45:34 CST 2006

Marian Schubert wrote:
>> I believe you can do this:
>> class Xrpc(xmlrpc.XMLRPC):
>>    def xmlrpc_echo(self, arg):
>>      return arg
>> xrpc = Xrpc()
>> page = NevowRootPage()
>> page.putChild('RPC2', xrpc)
> just make sure xmlrpc resource isn't behind nevow.guard

It's a shame you can't persuade guard by URL arguments to not try an 
HTTP redirect to HTML login, but issue an HTTP auth challenge.

Bizarrely nevow guard will accept http auth credentials if they're 
given, but I don't know of a single HTTP client that will submit them 
without getting the 401 first.

More information about the Twisted-web mailing list