From ca673aa9d854375c7a8aea64f1238611ac48ac84 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 May 2011 18:09:58 -0400 Subject: [PATCH] Add extra strings to Bug.string() output. --- libbe/bug.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbe/bug.py b/libbe/bug.py index 6421cbc..8b4b130 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -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') -- 2.26.2