Vendor MindTouch
Type Extension
Categories Developers
Requires MindTouch 1.9 or later
OS Restriction None
Status Stable
License Free/Open Source
SID (service id) sid://mindtouch.com/2008/02/trac
Assembly mindtouch.deki.services

 

Table of Contents

Description

This extension contains functions for embeding bug information from Trac bug tracker.

See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.

Configuration:

Before the Trac service can be used, it must be configured.

Config Key Description
trac-uri URI to your Trac installation. This URI + /login/xmlrpc needs to exist. Be sure that the XMLRPC plugin is installed.
username A Trac username that has view access to bugs
password Password for the Trac account

 


trac.link(id : num) : xml

Embed a link to a Trac bug report. A summary of the bug is shown when hovering over the link. The link is crossed out when the bug is closed or resolved.

Parameters:

Name Type Description
id int The bug number to link to

Samples:

   Output

A link to bug# 2084

{{ trac.link(2084) }} 
closed bug.PNG

  


trac.table(query : str, count : num, skip : num) : xml

Create a table listing of bugs returned from a given query

Parameters:

Name Type Description
query string Search query
count int optional. Number of bugs to return
skip int optional. Number of bugs to skip

Samples:

   Output

Up to 50 bugs returned by the query 'status!=closed'

 {{ trac.table("status!=closed", 50) }}
trac table.PNG

  


trac.count(query : str) : xml

Get the number of bugs returned by a search query

Parameters:

Name Type Description
query string Search query


Samples:

   Output

Number of bugs returned from the 'status!=closed' search query

 {{ trac.count("status!=closed") }}
101

  

Query Syntax

Information on constructing more sophisticated queries can be found here.

Known issues

Bug#SummaryStatusOpened ByAssigned ToSeverity

Development log

RevisionDateAuthorMessage
r148766/22/2009 7:40:04 PMstevebDeki (trunk):

* misc: replaced InvariantCulture with Ordinal for string comparisons
r132452/19/2009 11:21:24 PMstevebDeki (trunk):

* AdoDotNetService, DapperService, FeedService, JiraService, MySqlService, TracService, dhtml.xml: (bug 5717) Feed.Table doesn't have its own CSS
r131232/13/2009 10:10:11 PMmaximmDeki Trac extension

* Fixed nullref caused by missing severity field

BUGFIX 4359: Null reference exception with Link and Table
r131202/13/2009 9:54:46 PMmaximmDeki Trac extension

* Fixed nullref caused by missing severity field

BUGFIX 4359: Null reference exception with Link and Table
r126271/20/2009 5:42:55 PMstevebDeki (trunk):

* misc: updated and normalized all copyright notices
r97488/1/2008 10:41:58 PMstevebDeki (trunk):

DekiServices:

* updated service-type in service blueprint (passive attribute that's not yet used anyway)
r97277/31/2008 7:11:51 PMstevebDeki (trunk):

Services/Scripts`:

* iframe.xml: new script added

* updated all services/scripts to point their help URI to wiki.developer.mindtouch.com (instead of opengarden)
r88205/31/2008 4:07:18 PMstevebDeki Wiki (trunk):

* redist: updated redistributable files

* misc:

* updated all occurrences of 'MindTouch Deki Wiki' to 'MindTouch Deki'

* extended all copyright notices to 2008
r87635/29/2008 6:06:42 PMstevebDeki Wiki (trunk):

* misc: removed an extra space from the default copyright notice

Tools:

* DekiExt.php: added 'protocol' attribute to <uri> element

* GoogleAppEngine: added sample application
r81924/21/2008 5:13:40 AMstevebDekiWiki (trunk):

* updated DekiScript binary

* MISC: updated all relevant SIDs to new shorter format (e.g. sid://mindtouch.com/2006/11/dekiwiki) (NOTE: old SIDS are preserved for backwards compatibility)

* DekiXmlParser: evaluate attributes which have their value enclosed in double-curly braces
r76883/14/2008 8:37:52 PMmaximmDeki JiraService MantisService SubversionService TracService

* Updated div css classes
r74962/29/2008 12:44:35 AMmaximmDeki Extensions

Trac, Jira, Mantis, Subversion:

* Added links to documentation
r74952/29/2008 12:36:40 AMmaximmDeki Extensions: Jira, Mantis, Trac

Jira:

* Fixed jira.count to return a plain integer

Trac

* Fixed trac.count to return a plain integer

Mantis:

* Added mantis.count

* Added CSS styling and fixed tags

* Fixed duplicate bug listing issue (starting at page 1 instead of 0)

* Defaulted to top 20 bugs which is same as a batch size
r74402/27/2008 1:26:24 AMmaximmDeki Extensions: Mantis, Trac, Jira

* MantisService: using sorttable.js to sort the output

* TracService: Added Trac integration

* JiraService: Added Jira integration

Fixed Makefile (thx pete!)

Tag page
You must login to post a comment.