Rev 208: All attributes of a message are returned from getMessageDict regardless of circumstance. in http://bzr.daniel-watkins.co.uk/pqm/rss

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


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

------------------------------------------------------------
revno: 208
revision-id: daniel at daniel-watkins.co.uk-20080710142342-rklyndxnn7ogirgl
parent: daniel at daniel-watkins.co.uk-20080710140827-bmeljkvgpaixbtch
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: rss
timestamp: Thu 2008-07-10 15:23:42 +0100
message:
  All attributes of a message are returned from getMessageDict regardless of circumstance.
-------------- next part --------------
=== modified file 'pqm/ui/twistd.py'
--- a/pqm/ui/twistd.py	2008-07-10 13:57:57 +0000
+++ b/pqm/ui/twistd.py	2008-07-10 14:23:42 +0000
@@ -91,14 +91,14 @@
             projects = message.getProjects()
         except KeyError:
             dict['pqm_managed'] = False
-            return dict
-        dict['pqm_managed'] = True
+        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
-            return dict
-        dict['other'] = False
+        else:
+            dict['other'] = False
         dict['subject'] = message.getSubject()
         dict['commands'] = [c.asHTML() for c in message.getCommands()]
         return dict



More information about the bazaar-commits mailing list