Here are the examples of the python api twisted.web.xmlrpc.XMLRPC taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Example 1
Project: SubliminalCollaborator Source File: test_xmlrpc.py
def test_cannotSetDateTime(self):
"""
Setting L{XMLRPC.useDateTime} to C{True} after initialization raises
L{RuntimeError}.
"""
xmlrpc = XMLRPC(useDateTime=False)
self.assertRaises(RuntimeError, setattr, xmlrpc, "useDateTime", True)
proxy = Proxy("http://localhost/", useDateTime=False)
self.assertRaises(RuntimeError, setattr, proxy, "useDateTime", True)
0
Example 2
def getRPC(self):
r = xmlrpc.XMLRPC(allowNone=True)
r.xmlrpc_send_plain = self.send_plain
r.xmlrpc_send_raw_string = self.send_raw_string
return r