Changes between Version 6 and Version 7 of XmlRpcPlugin


Ignore:
Timestamp:
Dec 23, 2005, 12:06:10 AM (18 years ago)
Author:
Alec Thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcPlugin

    v6 v7  
    33== Description ==
    44
    5 '''*** Please note that this is still alpha software, so the API will probably change ***'''
     5'''*** Please note that this is still alpha software, so the API may change ***'''
    66
    77This plugin allows Trac plugins to export select parts of their interface via XML-RPC.
     
    99It also includes some exported functions for manipulating tickets, with plans to include interfaces to other parts of Trac's API.
    1010
    11 The XML-RPC URI suffix is /RPC2. For example, for TracHacks the URI would be http://trac-hacks.swapoff.org/RPC2. If the HTTP request to this URI is a normal HTTP request, the XmlRpcPlugin will list all exported functions that the current user has permission to use:
     11The browseable XML-RPC URI suffix is /RPC2, however most XML-RPC clients should use the authenticated URI suffix
     12/login/RPC2 as this is correctly authenticated by Trac.
     13
     14For example, for TracHacks the URI would be http://trac-hacks.swapoff.org/RPC2 or http://trac-hacks.swapoff.org/login/RPC2.
     15
     16== Screenshot ==
     17
     18If the HTTP request to this URI is not XML, the XmlRpcPlugin will list all exported functions that the current user has permission to use.
    1219
    1320    http://trac-hacks.swapoff.org/attachment/wiki/XmlRpcPlugin/tracrpc.jpg?format=raw
     
    4855import xmlrpclib
    4956
    50 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/RPC2")
     57server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/login/RPC2")
    5158
    5259print server.tracrpc.api.list_xmlrpc_functions()
     
    5966import xmlrpclib
    6067
    61 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/RPC2")
     68server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/login/RPC2")
    6269print server.tracrpc.ticket.query_tickets("owner=athomas")
    6370}}}