twisted.web.xmlrpc.XMLRPC

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 7

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)

Example 2

Project: bnw Source File: bnw_component.py
Function: get_rpc
    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