| 1 | <?xml version="1.0"?>
|
|---|
| 2 | <rss version="2.0" xmlns:py="http://genshi.edgewall.org/"
|
|---|
| 3 | xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|---|
| 4 | xmlns:xi="http://www.w3.org/2001/XInclude">
|
|---|
| 5 | <xi:include href="macros.rss" />
|
|---|
| 6 | <channel>
|
|---|
| 7 | <title>$project.name: $title</title>
|
|---|
| 8 | <link>${abs_href.report(report.id)}</link>
|
|---|
| 9 | <description>Trac Report - $description</description>
|
|---|
| 10 | <language>en-us</language>
|
|---|
| 11 | <image py:if="chrome.logo.src_abs">
|
|---|
| 12 | <title>$project.name</title>
|
|---|
| 13 | <url>$chrome.logo.src_abs</url>
|
|---|
| 14 | <link>${abs_href.report(report.id != -1 and report.id or '')}</link>
|
|---|
| 15 | </image>
|
|---|
| 16 | <generator>Trac v${trac.version}</generator>
|
|---|
| 17 |
|
|---|
| 18 | <item py:for="row in [r for (_, row_group) in row_groups for r in row_group]">
|
|---|
| 19 | <py:for each="cell in [c for cell_group in row.cell_groups for c in cell_group]">
|
|---|
| 20 | <py:with vars="col = cell.header.col.strip('_')">
|
|---|
| 21 | <py:choose>
|
|---|
| 22 | <py:when test="col == 'reporter'">
|
|---|
| 23 | ${author_or_creator(cell.author, email_map)}
|
|---|
| 24 | </py:when>
|
|---|
| 25 | <py:when test="col in ('time', 'changetime', 'created', 'modified')">
|
|---|
| 26 | <!-- FIXME: we end up with multiple pubDate -->
|
|---|
| 27 | <pubDate py:if="cell.value != 'None'">${http_date(fromtimestamp(int(cell.value)))}</pubDate>
|
|---|
| 28 | </py:when>
|
|---|
| 29 | <py:when test="col == 'summary'">
|
|---|
| 30 | <title>#$row.id: $cell.value</title>
|
|---|
| 31 | </py:when>
|
|---|
| 32 | <py:when test="col == 'description'">
|
|---|
| 33 | <description>${unicode(wiki_to_html(context(row.resource), cell.value))}</description>
|
|---|
| 34 | </py:when>
|
|---|
| 35 | </py:choose>
|
|---|
| 36 | </py:with>
|
|---|
| 37 | </py:for>
|
|---|
| 38 | <link py:if="row.id">${abs_url_of(row.resource)}</link>
|
|---|
| 39 | <guid isPermaLink="false" py:if="row.id">${abs_url_of(row.resource)}</guid>
|
|---|
| 40 | <category>Report</category>
|
|---|
| 41 | </item>
|
|---|
| 42 |
|
|---|
| 43 | </channel>
|
|---|
| 44 | </rss>
|
|---|