14 Dec
2006
14 Dec
'06
11:45 a.m.
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.