Changes between Version 39 and Version 40 of XmlRpcPlugin


Ignore:
Timestamp:
Aug 19, 2006, 5:24:10 AM (18 years ago)
Author:
Alec Thomas
Comment:

Attachment example

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcPlugin

    v39 v40  
    5656
    5757=== End-User Usage ===
    58 
    5958
    6059Obtain and print a list of XML-RPC exported functions available to my user:
     
    126125}}}
    127126
     127Add an attachment to WikiStart:
     128
     129{{{
     130#!python
     131import xmlrpclib
     132
     133server = xmlrpclib.ServerProxy("http://athomas:password@localhost:8080/trunk/login/xmlrpc")
     134
     135server.wiki.putAttachment('WikiStart/t.py', 'A cool Pythons script', xmlrpclib.Binary(open('t.py').read()))
     136}}}
     137
    128138
    129139=== API Usage ===