Merge lp:~gmb/launchpad/bug-276723 into lp:launchpad

Proposed by Graham Binns
Status: Merged
Approved by: Graham Binns
Approved revision: no longer in the source branch.
Merged at revision: 11990
Proposed branch: lp:~gmb/launchpad/bug-276723
Merge into: lp:launchpad
Diff against target: 510 lines (+106/-79)
4 files modified
lib/canonical/launchpad/emailtemplates/bug-notification-verbose.txt (+5/-3)
lib/canonical/launchpad/emailtemplates/bug-notification.txt (+4/-2)
lib/lp/bugs/doc/bugnotification-sending.txt (+96/-68)
lib/lp/bugs/scripts/bugnotification.py (+1/-6)
To merge this branch: bzr merge lp:~gmb/launchpad/bug-276723
Reviewer Review Type Date Requested Status
Abel Deuring (community) code Approve
Review via email: mp+41952@code.launchpad.net

Commit message

[r=adeuring][ui=none][bug=276723] The bugmail footer has been reformatted to be clearer and more consistently organised.

Description of the change

This branch fixes bug 276723 by altering the formatting of the bugmail
footer. The code changes are very slight but there are a lot of doctest
changes, since the exact formatting has to be corrected over and over
and over again.

To post a comment you must log in.
Revision history for this message
Abel Deuring (adeuring) wrote :

looks good

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/canonical/launchpad/emailtemplates/bug-notification-verbose.txt'
--- lib/canonical/launchpad/emailtemplates/bug-notification-verbose.txt 2009-11-17 17:33:28 +0000
+++ lib/canonical/launchpad/emailtemplates/bug-notification-verbose.txt 2010-11-26 14:08:20 +0000
@@ -1,13 +1,15 @@
1%(content)s1%(content)s
22
3-- 3--
4%(bug_title)s4%(notification_rationale)s
5%(bug_url)s5%(bug_url)s
6%(notification_rationale)s6
7Title:
8 %(bug_title)s
79
8%(bug_statuses)s10%(bug_statuses)s
911
10Bug description:12Bug description:
11%(bug_description)s13 %(bug_description)s
1214
13%(unsubscribe_notice)s15%(unsubscribe_notice)s
1416
=== modified file 'lib/canonical/launchpad/emailtemplates/bug-notification.txt'
--- lib/canonical/launchpad/emailtemplates/bug-notification.txt 2007-03-15 22:11:44 +0000
+++ lib/canonical/launchpad/emailtemplates/bug-notification.txt 2010-11-26 14:08:20 +0000
@@ -1,6 +1,8 @@
1%(content)s1%(content)s
22
3-- 3--
4%(bug_title)s4%(notification_rationale)s
5%(bug_url)s5%(bug_url)s
6%(notification_rationale)s6
7Title:
8 %(bug_title)s
79
=== modified file 'lib/lp/bugs/doc/bugnotification-sending.txt'
--- lib/lp/bugs/doc/bugnotification-sending.txt 2010-10-18 22:24:59 +0000
+++ lib/lp/bugs/doc/bugnotification-sending.txt 2010-11-26 14:08:20 +0000
@@ -85,10 +85,12 @@
85 a comment.85 a comment.
86 <BLANKLINE>86 <BLANKLINE>
87 ...87 ...
88 Firefox does not support SVG
89 http://bugs.launchpad.dev/bugs/1
90 You received this bug notification because you are subscribed to88 You received this bug notification because you are subscribed to
91 mozilla-firefox in ubuntu.89 mozilla-firefox in ubuntu.
90 http://bugs.launchpad.dev/bugs/1
91 <BLANKLINE>
92 Title:
93 Firefox does not support SVG
92 <BLANKLINE>94 <BLANKLINE>
93 ----------------------------------------------------------------------95 ----------------------------------------------------------------------
94 To: mark@example.com96 To: mark@example.com
@@ -99,9 +101,11 @@
99 a comment.101 a comment.
100 <BLANKLINE>102 <BLANKLINE>
101 ...103 ...
102 Firefox does not support SVG
103 http://bugs.launchpad.dev/bugs/1
104 You received this bug notification because you are a bug assignee.104 You received this bug notification because you are a bug assignee.
105 http://bugs.launchpad.dev/bugs/1
106 <BLANKLINE>
107 Title:
108 Firefox does not support SVG
105 <BLANKLINE>109 <BLANKLINE>
106 ----------------------------------------------------------------------110 ----------------------------------------------------------------------
107 To: support@ubuntu.com111 To: support@ubuntu.com
@@ -112,10 +116,12 @@
112 a comment.116 a comment.
113 <BLANKLINE>117 <BLANKLINE>
114 --118 --
115 Firefox does not support SVG
116 http://bugs.launchpad.dev/bugs/1
117 You received this bug notification because you are a member of Ubuntu119 You received this bug notification because you are a member of Ubuntu
118 Team, which is the registrant for Ubuntu.120 Team, which is the registrant for Ubuntu.
121 http://bugs.launchpad.dev/bugs/1
122 <BLANKLINE>
123 Title:
124 Firefox does not support SVG
119 <BLANKLINE>125 <BLANKLINE>
120 ----------------------------------------------------------------------126 ----------------------------------------------------------------------
121 To: test@canonical.com127 To: test@canonical.com
@@ -126,10 +132,12 @@
126 a comment.132 a comment.
127 <BLANKLINE>133 <BLANKLINE>
128 ...134 ...
129 Firefox does not support SVG
130 http://bugs.launchpad.dev/bugs/1
131 You received this bug notification because you are a direct subscriber135 You received this bug notification because you are a direct subscriber
132 of the bug.136 of the bug.
137 http://bugs.launchpad.dev/bugs/1
138 <BLANKLINE>
139 Title:
140 Firefox does not support SVG
133 <BLANKLINE>141 <BLANKLINE>
134 ----------------------------------------------------------------------142 ----------------------------------------------------------------------
135143
@@ -197,11 +205,12 @@
197 a new comment.205 a new comment.
198 <BLANKLINE>206 <BLANKLINE>
199 --207 --
200 Firefox does not support SVG
201 http://bugs.launchpad.dev/bugs/1
202 You received this bug notification because you are a member of Ubuntu208 You received this bug notification because you are a member of Ubuntu
203 Team, which is the registrant for Ubuntu.209 Team, which is the registrant for Ubuntu.
210 http://bugs.launchpad.dev/bugs/1
204 <BLANKLINE>211 <BLANKLINE>
212 Title:
213 Firefox does not support SVG
205 ----------------------------------------------------------------------214 ----------------------------------------------------------------------
206 To: test@canonical.com215 To: test@canonical.com
207 ...216 ...
@@ -239,10 +248,12 @@
239 ** Visibility changed to: Private.248 ** Visibility changed to: Private.
240 <BLANKLINE>249 <BLANKLINE>
241 ...250 ...
242 Firefox does not support SVG
243 http://bugs.launchpad.dev/bugs/1
244 You received this bug notification because you are a member of Ubuntu251 You received this bug notification because you are a member of Ubuntu
245 Team, which is the registrant for Ubuntu.252 Team, which is the registrant for Ubuntu.
253 http://bugs.launchpad.dev/bugs/1
254 <BLANKLINE>
255 Title:
256 Firefox does not support SVG
246 <BLANKLINE>257 <BLANKLINE>
247 ----------------------------------------------------------------------258 ----------------------------------------------------------------------
248 To: test@canonical.com259 To: test@canonical.com
@@ -292,11 +303,13 @@
292 <BLANKLINE>303 <BLANKLINE>
293 ** Visibility changed to: Public.304 ** Visibility changed to: Public.
294 <BLANKLINE>305 <BLANKLINE>
295 --306 --
296 Firefox does not support SVG
297 http://bugs.launchpad.dev/bugs/1
298 You received this bug notification because you are a member of Ubuntu307 You received this bug notification because you are a member of Ubuntu
299 Team, which is the registrant for Ubuntu.308 Team, which is the registrant for Ubuntu.
309 http://bugs.launchpad.dev/bugs/1
310 <BLANKLINE>
311 Title:
312 Firefox does not support SVG
300 ----------------------------------------------------------------------313 ----------------------------------------------------------------------
301 To: test@canonical.com314 To: test@canonical.com
302 ...315 ...
@@ -323,10 +336,12 @@
323 [...,336 [...,
324 '',337 '',
325 '-- ',338 '-- ',
326 'Firefox does not support SVG',339 'You received this bug notification because you are a direct subscriber',
340 'of the bug.',
327 'http://bugs.launchpad.dev/bugs/1',341 'http://bugs.launchpad.dev/bugs/1',
328 'You received this bug notification because you are a direct subscriber',342 '',
329 'of the bug.']343 'Title:',
344 ' Firefox does not support SVG']
330345
331 >>> flush_notifications()346 >>> flush_notifications()
332347
@@ -418,10 +433,12 @@
418 a comment.433 a comment.
419 <BLANKLINE>434 <BLANKLINE>
420 --435 --
421 new bug
422 http://bugs.launchpad.dev/bugs/16
423 You received this bug notification because you are a member of Ubuntu436 You received this bug notification because you are a member of Ubuntu
424 Team, which is the registrant for Ubuntu.437 Team, which is the registrant for Ubuntu.
438 http://bugs.launchpad.dev/bugs/16
439 <BLANKLINE>
440 Title:
441 new bug
425 <BLANKLINE>442 <BLANKLINE>
426 ----------------------------------------------------------------------443 ----------------------------------------------------------------------
427 To: test@canonical.com444 To: test@canonical.com
@@ -435,10 +452,12 @@
435 a comment.452 a comment.
436 <BLANKLINE>453 <BLANKLINE>
437 --454 --
438 new bug
439 http://bugs.launchpad.dev/bugs/16
440 You received this bug notification because you are a direct subscriber455 You received this bug notification because you are a direct subscriber
441 of the bug.456 of the bug.
457 http://bugs.launchpad.dev/bugs/16
458 <BLANKLINE>
459 Title:
460 new bug
442 <BLANKLINE>461 <BLANKLINE>
443 ----------------------------------------------------------------------462 ----------------------------------------------------------------------
444463
@@ -615,11 +634,12 @@
615 <BLANKLINE>634 <BLANKLINE>
616 -- =635 -- =
617 <BLANKLINE>636 <BLANKLINE>
618 Firefox does not support SVG
619 http://bugs.launchpad.dev/bugs/1
620 You received this bug notification because you are subscribed to637 You received this bug notification because you are subscribed to
621 mozilla-firefox in ubuntu.638 mozilla-firefox in ubuntu.
639 http://bugs.launchpad.dev/bugs/1
622 <BLANKLINE>640 <BLANKLINE>
641 Title:
642 Firefox does not support SVG
623 INFO Notifying marilize@hbd.com about bug 1.643 INFO Notifying marilize@hbd.com about bug 1.
624 ...644 ...
625 INFO Notifying mark@example.com about bug 1.645 INFO Notifying mark@example.com about bug 1.
@@ -959,10 +979,12 @@
959 a really simple comment.979 a really simple comment.
960 <BLANKLINE>980 <BLANKLINE>
961 --981 --
962 Foo is broken
963 http://bugs.launchpad.dev/bugs/...
964 You received this bug notification because you are a direct subscriber982 You received this bug notification because you are a direct subscriber
965 of the bug.983 of the bug.
984 http://bugs.launchpad.dev/bugs/...
985 <BLANKLINE>
986 Title:
987 Foo is broken
966 <BLANKLINE>988 <BLANKLINE>
967 ----------------------------------------------------------------------989 ----------------------------------------------------------------------
968990
@@ -978,10 +1000,12 @@
978 a really simple comment.1000 a really simple comment.
979 <BLANKLINE>1001 <BLANKLINE>
980 --1002 --
981 Foo is broken
982 http://bugs.launchpad.dev/bugs/...
983 You received this bug notification because you are a member of Verbose1003 You received this bug notification because you are a member of Verbose
984 Team, which is a direct subscriber.1004 Team, which is a direct subscriber.
1005 http://bugs.launchpad.dev/bugs/...
1006 <BLANKLINE>
1007 Title:
1008 Foo is broken
985 <BLANKLINE>1009 <BLANKLINE>
986 ----------------------------------------------------------------------1010 ----------------------------------------------------------------------
9871011
@@ -996,15 +1020,18 @@
996 a really simple comment.1020 a really simple comment.
997 <BLANKLINE>1021 <BLANKLINE>
998 --1022 --
999 Foo is broken
1000 http://bugs.launchpad.dev/bugs/...
1001 You received this bug notification because you are a direct subscriber1023 You received this bug notification because you are a direct subscriber
1002 of the bug.1024 of the bug.
1003 <BLANKLINE>1025 http://bugs.launchpad.dev/bugs/...
1004 Status in Foo: New1026 <BLANKLINE>
1027 Title:
1028 Foo is broken
1029 <BLANKLINE>
1030 Status in Foo:
1031 New
1005 <BLANKLINE>1032 <BLANKLINE>
1006 Bug description:1033 Bug description:
1007 desc1034 desc
1008 <BLANKLINE>1035 <BLANKLINE>
1009 To unsubscribe from this bug, go to:1036 To unsubscribe from this bug, go to:
1010 http://bugs.launchpad.dev/.../+bug/.../+subscribe1037 http://bugs.launchpad.dev/.../+bug/.../+subscribe
@@ -1022,15 +1049,18 @@
1022 a really simple comment.1049 a really simple comment.
1023 <BLANKLINE>1050 <BLANKLINE>
1024 --1051 --
1025 Foo is broken
1026 http://bugs.launchpad.dev/bugs/...
1027 You received this bug notification because you are a member of Concise1052 You received this bug notification because you are a member of Concise
1028 Team, which is a direct subscriber.1053 Team, which is a direct subscriber.
1029 <BLANKLINE>1054 http://bugs.launchpad.dev/bugs/...
1030 Status in Foo: New1055 <BLANKLINE>
1056 Title:
1057 Foo is broken
1058 <BLANKLINE>
1059 Status in Foo:
1060 New
1031 <BLANKLINE>1061 <BLANKLINE>
1032 Bug description:1062 Bug description:
1033 desc1063 desc
1034 <BLANKLINE>1064 <BLANKLINE>
1035 ----------------------------------------------------------------------1065 ----------------------------------------------------------------------
10361066
@@ -1075,18 +1105,18 @@
1075 ...1105 ...
1076 You received this bug notification because you are subscribed to1106 You received this bug notification because you are subscribed to
1077 mozilla-firefox in ubuntu.1107 mozilla-firefox in ubuntu.
1078 <BLANKLINE>1108 ...
1079 ----------------------------------------------------------------------1109 ----------------------------------------------------------------------
1080 To: marilize@hbd.com1110 To: marilize@hbd.com
1081 ...1111 ...
1082 You received this bug notification because you are a member of ShipIt1112 You received this bug notification because you are a member of ShipIt
1083 Administrators, which is a direct subscriber.1113 Administrators, which is a direct subscriber.
1084 <BLANKLINE>1114 ...
1085 ----------------------------------------------------------------------1115 ----------------------------------------------------------------------
1086 To: mark@example.com1116 To: mark@example.com
1087 ...1117 ...
1088 You received this bug notification because you are a bug assignee.1118 You received this bug notification because you are a bug assignee.
1089 <BLANKLINE>1119 ...
1090 ----------------------------------------------------------------------1120 ----------------------------------------------------------------------
1091 To: no-priv@canonical.com1121 To: no-priv@canonical.com
1092 From: Sample Person <...@bugs.launchpad.net>1122 From: Sample Person <...@bugs.launchpad.net>
@@ -1096,23 +1126,21 @@
1096 another comment.1126 another comment.
1097 <BLANKLINE>1127 <BLANKLINE>
1098 --1128 --
1099 Firefox does not support SVG
1100 http://bugs.launchpad.dev/bugs/1
1101 You received this bug notification because you are subscribed to Mozilla1129 You received this bug notification because you are subscribed to Mozilla
1102 Firefox.1130 Firefox.
1103 <BLANKLINE>1131 ...
1104 ----------------------------------------------------------------------1132 ----------------------------------------------------------------------
1105 To: support@ubuntu.com1133 To: support@ubuntu.com
1106 ...1134 ...
1107 You received this bug notification because you are a member of Ubuntu1135 You received this bug notification because you are a member of Ubuntu
1108 Team, which is the registrant for Ubuntu.1136 Team, which is the registrant for Ubuntu.
1109 <BLANKLINE>1137 ...
1110 ----------------------------------------------------------------------1138 ----------------------------------------------------------------------
1111 To: test@canonical.com1139 To: test@canonical.com
1112 ...1140 ...
1113 You received this bug notification because you are a direct subscriber1141 You received this bug notification because you are a direct subscriber
1114 of the bug.1142 of the bug.
1115 <BLANKLINE>1143 ...
1116 ----------------------------------------------------------------------1144 ----------------------------------------------------------------------
11171145
1118If Sample Person's notification level is set to METADATA, he receives1146If Sample Person's notification level is set to METADATA, he receives
@@ -1138,7 +1166,7 @@
1138 ...1166 ...
1139 You received this bug notification because you are subscribed to1167 You received this bug notification because you are subscribed to
1140 mozilla-firefox in ubuntu.1168 mozilla-firefox in ubuntu.
1141 <BLANKLINE>1169 ...
1142 ----------------------------------------------------------------------1170 ----------------------------------------------------------------------
1143 To: marilize@hbd.com1171 To: marilize@hbd.com
1144 From: Sample Person <...@bugs.launchpad.net>1172 From: Sample Person <...@bugs.launchpad.net>
@@ -1148,28 +1176,26 @@
1148 no comment for no-priv.1176 no comment for no-priv.
1149 <BLANKLINE>1177 <BLANKLINE>
1150 --1178 --
1151 Firefox does not support SVG
1152 http://bugs.launchpad.dev/bugs/1
1153 You received this bug notification because you are a member of ShipIt1179 You received this bug notification because you are a member of ShipIt
1154 Administrators, which is a direct subscriber.1180 Administrators, which is a direct subscriber.
1155 <BLANKLINE>1181 ...
1156 ----------------------------------------------------------------------1182 ----------------------------------------------------------------------
1157 To: mark@example.com1183 To: mark@example.com
1158 ...1184 ...
1159 You received this bug notification because you are a bug assignee.1185 You received this bug notification because you are a bug assignee.
1160 <BLANKLINE>1186 ...
1161 ----------------------------------------------------------------------1187 ----------------------------------------------------------------------
1162 To: support@ubuntu.com1188 To: support@ubuntu.com
1163 ...1189 ...
1164 You received this bug notification because you are a member of Ubuntu1190 You received this bug notification because you are a member of Ubuntu
1165 Team, which is the registrant for Ubuntu.1191 Team, which is the registrant for Ubuntu.
1166 <BLANKLINE>1192 ...
1167 ----------------------------------------------------------------------1193 ----------------------------------------------------------------------
1168 To: test@canonical.com1194 To: test@canonical.com
1169 ...1195 ...
1170 You received this bug notification because you are a direct subscriber1196 You received this bug notification because you are a direct subscriber
1171 of the bug.1197 of the bug.
1172 <BLANKLINE>1198 ...
1173 ----------------------------------------------------------------------1199 ----------------------------------------------------------------------
11741200
1175The notifications generated by addChangeNotification() are sent only to1201The notifications generated by addChangeNotification() are sent only to
@@ -1189,18 +1215,19 @@
1189 ...1215 ...
1190 You received this bug notification because you are subscribed to1216 You received this bug notification because you are subscribed to
1191 mozilla-firefox in ubuntu.1217 mozilla-firefox in ubuntu.
1192 <BLANKLINE>1218 http://bugs.launchpad.dev/bugs/1
1219 ...
1193 ----------------------------------------------------------------------1220 ----------------------------------------------------------------------
1194 To: marilize@hbd.com1221 To: marilize@hbd.com
1195 ...1222 ...
1196 You received this bug notification because you are a member of ShipIt1223 You received this bug notification because you are a member of ShipIt
1197 Administrators, which is a direct subscriber.1224 Administrators, which is a direct subscriber.
1198 <BLANKLINE>1225 ...
1199 ----------------------------------------------------------------------1226 ----------------------------------------------------------------------
1200 To: mark@example.com1227 To: mark@example.com
1201 ...1228 ...
1202 You received this bug notification because you are a bug assignee.1229 You received this bug notification because you are a bug assignee.
1203 <BLANKLINE>1230 ...
1204 ----------------------------------------------------------------------1231 ----------------------------------------------------------------------
1205 To: no-priv@canonical.com1232 To: no-priv@canonical.com
1206 From: Sample Person <...@bugs.launchpad.net>1233 From: Sample Person <...@bugs.launchpad.net>
@@ -1211,24 +1238,22 @@
1211 <BLANKLINE>1238 <BLANKLINE>
1212 ** Summary changed to: whatever.1239 ** Summary changed to: whatever.
1213 <BLANKLINE>1240 <BLANKLINE>
1214 --1241 --
1215 Firefox does not support SVG
1216 http://bugs.launchpad.dev/bugs/1
1217 You received this bug notification because you are subscribed to Mozilla1242 You received this bug notification because you are subscribed to Mozilla
1218 Firefox.1243 Firefox.
1219 <BLANKLINE>1244 ...
1220 ----------------------------------------------------------------------1245 ----------------------------------------------------------------------
1221 To: support@ubuntu.com1246 To: support@ubuntu.com
1222 ...1247 ...
1223 You received this bug notification because you are a member of Ubuntu1248 You received this bug notification because you are a member of Ubuntu
1224 Team, which is the registrant for Ubuntu.1249 Team, which is the registrant for Ubuntu.
1225 <BLANKLINE>1250 ...
1226 ----------------------------------------------------------------------1251 ----------------------------------------------------------------------
1227 To: test@canonical.com1252 To: test@canonical.com
1228 ...1253 ...
1229 You received this bug notification because you are a direct subscriber1254 You received this bug notification because you are a direct subscriber
1230 of the bug.1255 of the bug.
1231 <BLANKLINE>1256 ...
1232 ----------------------------------------------------------------------1257 ----------------------------------------------------------------------
12331258
1234If Sample Person sets his notification level to LIFECYCLE, he receives1259If Sample Person sets his notification level to LIFECYCLE, he receives
@@ -1252,6 +1277,7 @@
1252 ...1277 ...
1253 You received this bug notification because you are subscribed to1278 You received this bug notification because you are subscribed to
1254 mozilla-firefox in ubuntu.1279 mozilla-firefox in ubuntu.
1280 ...
1255 <BLANKLINE>1281 <BLANKLINE>
1256 ----------------------------------------------------------------------1282 ----------------------------------------------------------------------
1257 To: marilize@hbd.com1283 To: marilize@hbd.com
@@ -1261,27 +1287,29 @@
1261 <BLANKLINE>1287 <BLANKLINE>
1262 ** Summary changed to: something.1288 ** Summary changed to: something.
1263 <BLANKLINE>1289 <BLANKLINE>
1264 --1290 --
1265 Firefox does not support SVG
1266 http://bugs.launchpad.dev/bugs/1
1267 You received this bug notification because you are a member of ShipIt1291 You received this bug notification because you are a member of ShipIt
1268 Administrators, which is a direct subscriber.1292 Administrators, which is a direct subscriber.
1293 http://bugs.launchpad.dev/bugs/1
1294 <BLANKLINE>
1295 Title:
1296 Firefox does not support SVG
1269 <BLANKLINE>1297 <BLANKLINE>
1270 ----------------------------------------------------------------------1298 ----------------------------------------------------------------------
1271 To: mark@example.com1299 To: mark@example.com
1272 ...1300 ...
1273 You received this bug notification because you are a bug assignee.1301 You received this bug notification because you are a bug assignee.
1274 <BLANKLINE>1302 ...
1275 ----------------------------------------------------------------------1303 ----------------------------------------------------------------------
1276 To: support@ubuntu.com1304 To: support@ubuntu.com
1277 ...1305 ...
1278 You received this bug notification because you are a member of Ubuntu1306 You received this bug notification because you are a member of Ubuntu
1279 Team, which is the registrant for Ubuntu.1307 Team, which is the registrant for Ubuntu.
1280 <BLANKLINE>1308 ...
1281 ----------------------------------------------------------------------1309 ----------------------------------------------------------------------
1282 To: test@canonical.com1310 To: test@canonical.com
1283 ...1311 ...
1284 You received this bug notification because you are a direct subscriber1312 You received this bug notification because you are a direct subscriber
1285 of the bug.1313 of the bug.
1286 <BLANKLINE>1314 ...
1287 ----------------------------------------------------------------------1315 ----------------------------------------------------------------------
12881316
=== modified file 'lib/lp/bugs/scripts/bugnotification.py'
--- lib/lp/bugs/scripts/bugnotification.py 2010-09-24 22:30:48 +0000
+++ lib/lp/bugs/scripts/bugnotification.py 2010-11-26 14:08:20 +0000
@@ -16,23 +16,18 @@
16from operator import itemgetter16from operator import itemgetter
1717
18import transaction18import transaction
19from zope.component import getUtility
2019
21from canonical.config import config
22from canonical.launchpad.helpers import (20from canonical.launchpad.helpers import (
23 emailPeople,21 emailPeople,
24 get_email_template,22 get_email_template,
25 )23 )
26from canonical.launchpad.interfaces.launchpad import ILaunchpadCelebrities
27from canonical.launchpad.scripts.logger import log24from canonical.launchpad.scripts.logger import log
28from canonical.launchpad.webapp import canonical_url25from canonical.launchpad.webapp import canonical_url
29from lp.bugs.interfaces.bugmessage import IBugMessageSet
30from lp.bugs.mail.bugnotificationbuilder import (26from lp.bugs.mail.bugnotificationbuilder import (
31 BugNotificationBuilder,27 BugNotificationBuilder,
32 get_bugmail_from_address,28 get_bugmail_from_address,
33 )29 )
34from lp.bugs.mail.newbug import generate_bug_add_email30from lp.bugs.mail.newbug import generate_bug_add_email
35from lp.registry.interfaces.person import IPersonSet
36from lp.services.mail.mailwrapper import MailWrapper31from lp.services.mail.mailwrapper import MailWrapper
3732
3833
@@ -138,7 +133,7 @@
138 email_template = 'bug-notification-verbose.txt'133 email_template = 'bug-notification-verbose.txt'
139 body_data['bug_description'] = bug.description134 body_data['bug_description'] = bug.description
140135
141 status_base = "Status in %s: %s"136 status_base = "Status in %s:\n %s"
142 status_strings = []137 status_strings = []
143 for bug_task in bug.bugtasks:138 for bug_task in bug.bugtasks:
144 status_strings.append(status_base % (bug_task.target.title,139 status_strings.append(status_base % (bug_task.target.title,