Add extra strings to Bug.string() output.
authorW. Trevor King <wking@drexel.edu>
Mon, 2 May 2011 22:09:58 +0000 (18:09 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 May 2011 22:09:58 +0000 (18:09 -0400)
libbe/bug.py

index 6421cbcb6e5940e3580d5da5d0b5ade88ef1941a..8b4b13064b06d547870cecd23d0d7f69b70e1d90 100644 (file)
@@ -285,6 +285,8 @@ class Bug (settings_object.SavedSettingsObject):
                     ("Reporter", self._setting_attr_string("reporter")),
                     ("Creator", self._setting_attr_string("creator")),
                     ("Created", timestring)]
+            for estr in self.extra_strings:
+                info.append(('Extra string', estr))
             longest_key_len = max([len(k) for k,v in info])
             infolines = ["  %*s : %s\n" %(longest_key_len,k,v) for k,v in info]
             bugout = "".join(infolines) + "%s" % self.summary.rstrip('\n')