Changes between Version 6 and Version 7 of XmlRpcPlugin
- Timestamp:
- Dec 23, 2005, 12:06:10 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XmlRpcPlugin
v6 v7 3 3 == Description == 4 4 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 ***''' 6 6 7 7 This plugin allows Trac plugins to export select parts of their interface via XML-RPC. … … 9 9 It also includes some exported functions for manipulating tickets, with plans to include interfaces to other parts of Trac's API. 10 10 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: 11 The 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 14 For 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 18 If the HTTP request to this URI is not XML, the XmlRpcPlugin will list all exported functions that the current user has permission to use. 12 19 13 20 http://trac-hacks.swapoff.org/attachment/wiki/XmlRpcPlugin/tracrpc.jpg?format=raw … … 48 55 import xmlrpclib 49 56 50 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/ RPC2")57 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/login/RPC2") 51 58 52 59 print server.tracrpc.api.list_xmlrpc_functions() … … 59 66 import xmlrpclib 60 67 61 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/ RPC2")68 server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/login/RPC2") 62 69 print server.tracrpc.ticket.query_tickets("owner=athomas") 63 70 }}}