Rev 209: Fixed foolish error. in http://bzr.daniel-watkins.co.uk/pqm/rss

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


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

------------------------------------------------------------
revno: 209
revision-id: daniel at daniel-watkins.co.uk-20080710142534-mqk2qzidoj8azorx
parent: daniel at daniel-watkins.co.uk-20080710142342-rklyndxnn7ogirgl
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: rss
timestamp: Thu 2008-07-10 15:25:34 +0100
message:
  Fixed foolish error.
-------------- next part --------------
=== modified file 'pqm/ui/twistd.py'
--- a/pqm/ui/twistd.py	2008-07-10 14:23:42 +0000
+++ b/pqm/ui/twistd.py	2008-07-10 14:25:34 +0000
@@ -87,20 +87,20 @@
         dict = {}
         dict['submission_time'] = time.ctime(message.getSubmissionTime())
         dict['sender'] = message.getSender()
+        dict['subject'] = message.getSubject()
+        dict['commands'] = [c.asHTML() for c in message.getCommands()]
         try:
             projects = message.getProjects()
         except KeyError:
             dict['pqm_managed'] = False
         else:
             dict['pqm_managed'] = True
-        if ((selected_project is None and len(projects)) or
-            (selected_project is not None and
-             selected_project not in projects)):
-            dict['other'] = True
-        else:
-            dict['other'] = False
-        dict['subject'] = message.getSubject()
-        dict['commands'] = [c.asHTML() for c in message.getCommands()]
+            if ((selected_project is None and len(projects)) or
+                (selected_project is not None and
+                 selected_project not in projects)):
+                dict['other'] = True
+            else:
+                dict['other'] = False
         return dict
 
 



More information about the bazaar-commits mailing list