Rev 211: Added 'Now Playing: ' to first item in RSS feed. in http://bzr.daniel-watkins.co.uk/pqm/rss

Daniel Watkins daniel at daniel-watkins.co.uk
Thu Jul 10 15:54:28 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/rss

------------------------------------------------------------
revno: 211
revision-id: daniel at daniel-watkins.co.uk-20080710145315-o8pvt1pnvsffyjvl
parent: daniel at daniel-watkins.co.uk-20080710142740-s428gax179nkhm31
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: rss
timestamp: Thu 2008-07-10 15:53:15 +0100
message:
  Added 'Now Playing: ' to first item in RSS feed.
-------------- next part --------------
=== modified file 'pqm/ui/template.py'
--- a/pqm/ui/template.py	2008-07-10 14:27:40 +0000
+++ b/pqm/ui/template.py	2008-07-10 14:53:15 +0000
@@ -65,7 +65,7 @@
     <link></link>
     <description></description>
     <item tal:repeat="message messages">
-      <title tal:content="message/subject"></title>
+      <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" /></description>
       <pubDate tal:content="message/submission_time"></pubDate>

=== modified file 'pqm/ui/tests/test_twisted.py'
--- a/pqm/ui/tests/test_twisted.py	2008-07-10 14:27:40 +0000
+++ b/pqm/ui/tests/test_twisted.py	2008-07-10 14:53:15 +0000
@@ -205,7 +205,7 @@
                     '    <link></link>\n'
                     '    <description></description>\n'
                     '    <item>\n'
-                    '      <title>A new action</title>\n'
+                    '      <title>Now Playing: A new action</title>\n'
                     '      <author>John.Citizen at example.com</author>\n'
                     '      <description>Merge archive at example.com/foo--bar--0 archive2 at example.com/bar--foo--1</description>\n'
                     '      <pubDate>...</pubDate>\n'



More information about the bazaar-commits mailing list