array system.multicall(array signatures)
Takes an array of XML-RPC calls encoded as structs of the form (in
a Pythonish notation here):
{'methodName': string, 'params': array}
array system.listMethods()
This method returns a list of strings, one for each (non-system)
method supported by the XML-RPC server.
string system.methodHelp(string method)
This method takes one parameter, the name of a method implemented
by the XML-RPC server. It returns a documentation string describing the
use of that method. If no such string is available, an empty string is
returned. The documentation string may contain HTML markup.
array system.methodSignature(string method)
This method takes one parameter, the name of a method implemented
by the XML-RPC server.
It returns an array of possible signatures for this method. A signature
is an array of types. The first of these types is the return type of
the method, the rest are parameters.
array system.getAPIVersion()
Returns a list with two elements. First element is the major
version number, second is the minor. Changes to the major version
indicate API breaking changes, while minor version changes are simple
additions, bug fixes, etc.
array ticket.query(string qstr="status!=closed")
Perform a ticket query, returning a list of ticket ID's.
array ticket.getRecentChanges(dateTime.iso8601 since)
Returns a list of IDs of tickets that have changed since timestamp.
array ticket.getAvailableActions(int id)
Returns the actions that can be performed on the ticket.
array ticket.get(int id)
Fetch a ticket. Returns [id, time_created, time_changed, attributes].
int ticket.create(string summary, string description, struct attributes={}, boolean notify=False)
Create a new ticket, returning the ticket ID.
array ticket.update(int id, string comment, struct attributes={}, boolean notify=False)
Update a ticket, returning the new ticket in the same form as getTicket().
struct ticket.changeLog(int id, int when=0)
Return the changelog as a list of tuples of the form
(time, author, field, oldvalue, newvalue, permanent).
While the other tuple elements are quite self-explanatory,
the `permanent` flag is used to distinguish collateral changes
that are not yet immutable (like attachments, currently).
array ticket.listAttachments(int ticket)
Lists attachments for a given ticket. Returns (filename,
description, size, time, author) for each attachment.
base64 ticket.getAttachment(int ticket, string filename)
returns the content of an attachment.
string ticket.putAttachment(int ticket, string filename, string description, base64 data, boolean replace=True)
Add an attachment, optionally (and defaulting to) overwriting an
existing one. Returns filename.
array ticket.getTicketFields()
Return a list of all ticket fields fields.
array ticket.component.getAll()
Get a list of all ticket component names.
struct ticket.component.get(string name)
Get a ticket component.
array ticket.version.getAll()
Get a list of all ticket version names.
struct ticket.version.get(string name)
Get a ticket version.
array ticket.milestone.getAll()
Get a list of all ticket milestone names.
struct ticket.milestone.get(string name)
Get a ticket milestone.
array ticket.type.getAll()
Get a list of all ticket type names.
string ticket.type.get(string name)
Get a ticket type.
array ticket.status.getAll()
Get a list of all ticket status names.
string ticket.status.get(string name)
Get a ticket status.
array ticket.resolution.getAll()
Get a list of all ticket resolution names.
string ticket.resolution.get(string name)
Get a ticket resolution.
array ticket.priority.getAll()
Get a list of all ticket priority names.
string ticket.priority.get(string name)
Get a ticket priority.
array ticket.severity.getAll()
Get a list of all ticket severity names.
string ticket.severity.get(string name)
Get a ticket severity.
struct wiki.getRecentChanges(dateTime.iso8601 since)
Get list of changed pages since timestamp
int wiki.getRPCVersionSupported()
Returns 2 with this version of the Trac API.
string wiki.getPage(string pagename, int version=None)
Get the raw Wiki text of page, latest version.
string wiki.getPageVersion(string pagename, int version=None)
Get the raw Wiki text of page, latest version.
string wiki.getPageHTML(string pagename, int version=None)
Return page in rendered HTML, latest version.
string wiki.getPageHTMLVersion(string pagename, int version=None)
Return page in rendered HTML, latest version.
array wiki.getAllPages()
Returns a list of all pages. The result is an array of utf8 pagenames.
struct wiki.getPageInfo(string pagename, int version=None)
Returns information about the given page.
struct wiki.getPageInfoVersion(string pagename, int version=None)
Returns information about the given page.
boolean wiki.putPage(string pagename, string content, struct attributes)
writes the content of the page.
array wiki.listAttachments(string pagename)
Lists attachments on a given page.
base64 wiki.getAttachment(string path)
returns the content of an attachment.
boolean wiki.putAttachment(string path, base64 data)
(over)writes an attachment. Returns True if successful.
This method is compatible with WikiRPC. `putAttachmentEx` has a more
extensive set of (Trac-specific) features.
boolean wiki.putAttachmentEx(string pagename, string filename, string description, base64 data, boolean replace=True)
Attach a file to a Wiki page. Returns the (possibly transformed)
filename of the attachment.
Use this method if you don't care about WikiRPC compatibility.
array wiki.listLinks(string pagename)
''Not implemented''
string wiki.wikiToHtml(string text)
Render arbitrary Wiki text as HTML.
array search.getSearchFilters()
Retrieve a list of search filters with each element in the form
(name, description).
array search.performSearch(string query, array filters=[])
Perform a search using the given filters. Defaults to all if not
provided. Results are returned as a list of tuples in the form
(href, title, date, author, excerpt).
array trachacks.getHacks(string release, string type)
Fetch a list of hacks for Trac release, of type.
array trachacks.getReleases()
Return a list of Trac releases TracHacks is aware of.
array trachacks.getTypes()
Return a list of known Hack types.
struct trachacks.getDetails(string hack)
Fetch hack details. Returns dict with name, dependencies and
description.
}}