Rev 220: Added RSS output for non-PQM managed branches. in http://bzr.daniel-watkins.co.uk/pqm/rss
Daniel Watkins
daniel at daniel-watkins.co.uk
Mon Jul 14 15:01:40 BST 2008
At http://bzr.daniel-watkins.co.uk/pqm/rss
------------------------------------------------------------
revno: 220
revision-id: daniel at daniel-watkins.co.uk-20080714140016-6uw33kn6e0hudbvj
parent: daniel at daniel-watkins.co.uk-20080714135346-9qewhrxuf2wavb0a
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: rss
timestamp: Mon 2008-07-14 15:00:16 +0100
message:
Added RSS output for non-PQM managed branches.
-------------- next part --------------
=== modified file 'pqm/ui/template.py'
--- a/pqm/ui/template.py 2008-07-14 13:46:36 +0000
+++ b/pqm/ui/template.py 2008-07-14 14:00:16 +0000
@@ -66,9 +66,15 @@
<description></description>
<item tal:repeat="message messages">
<tal:block tal:condition="not: message/other">
+ <tal:block tal:condition="message/pqm_managed">
<title><tal:block tal:condition="repeat/message/start">Now Playing: </tal:block><div tal:replace="message/subject" /></title>
<author tal:content="message/sender"></author>
<description><div tal:repeat="command message/commands" tal:replace="command" /><tal:block tal:condition="repeat/message/start">\n<div tal:replace="status_text" /></tal:block></description>
+ </tal:block>
+ <tal:block tal:condition="not: message/pqm_managed">
+ <title>Request for non-PQM managed branch</title>
+ <author tal:content="message/sender"></author>
+ </tal:block>
</tal:block>
<tal:block tal:condition="message/other">
<title><tal:block tal:condition="repeat/message/start">Now Playing: </tal:block>A request for another project</title>
=== modified file 'pqm/ui/tests/test_twisted.py'
--- a/pqm/ui/tests/test_twisted.py 2008-07-14 13:53:46 +0000
+++ b/pqm/ui/tests/test_twisted.py 2008-07-14 14:00:16 +0000
@@ -315,9 +315,8 @@
' <pubDate>...</pubDate>\n'
' </item>'
'<item>\n'
- ' <title>A new action</title>\n'
+ ' <title>Request for non-PQM managed branch</title>\n'
' <author>John.Citizen at example.com</author>\n'
- ' <description>Merge archive at example.com/foo--bar--0 unregistered at example.com/bar--foo--1</description>\n'
' <pubDate>...</pubDate>\n'
' </item>'
'<item>\n'
@@ -348,9 +347,8 @@
' <pubDate>...</pubDate>\n'
' </item>'
'<item>\n'
- ' <title>A new action</title>\n'
+ ' <title>Request for non-PQM managed branch</title>\n'
' <author>John.Citizen at example.com</author>\n'
- ' <description>Merge archive at example.com/foo--bar--0 unregistered at example.com/bar--foo--1</description>\n'
' <pubDate>...</pubDate>\n'
' </item>'
'<item>\n'
More information about the bazaar-commits
mailing list