Example #1
0
def main():
    s = Server("http://*****:*****@localhost:8080/exist/xmlrpc")

    d = {
        "data": urllib.urlopen("http://localhost:8081/status").read(),
    }

    res = s.xupdate("/db", Binary(upd % d))

    if not res:
        s.parse("<data/>", "/db/pycoon-status")
Example #2
0
def main():
    s = Server("http://*****:*****@localhost:8080/exist/xmlrpc")

    d = {
         "data": urllib.urlopen("http://localhost:8081/status").read(),
    }

    res = s.xupdate("/db", Binary(upd % d))
    
    if not res:
        s.parse("<data/>", "/db/pycoon-status")