~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugnotification-email.txt

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
New security related bugs are sent with a prominent warning:
95
95
 
96
 
    >>> changed = bug_four.setSecurityRelated(True, getUtility(ILaunchBag).user)
 
96
    >>> changed = bug_four.setSecurityRelated(
 
97
    ...     True, getUtility(ILaunchBag).user)
97
98
 
98
99
    >>> subject, body = generate_bug_add_email(bug_four)
99
100
    >>> subject
214
215
    + It's also smart enough to preserve whitespace, finally!
215
216
    -----------------------------
216
217
 
 
218
(Note that there's a blank line in the email that contains whitespace.  You
 
219
may see a lint warning for that.)
 
220
 
217
221
Let's make the bug security-related, and private (we need to switch
218
222
logins to a user that is explicitly subscribed to this bug):
219
223
 
221
225
 
222
226
    >>> edited_bug.setPrivate(True, getUtility(ILaunchBag).user)
223
227
    True
224
 
    >>> changed = edited_bug.setSecurityRelated(True, getUtility(ILaunchBag).user)
 
228
    >>> changed = edited_bug.setSecurityRelated(
 
229
    ...     True, getUtility(ILaunchBag).user)
225
230
    >>> bug_delta = BugDelta(
226
231
    ...     bug=edited_bug,
227
232
    ...     bugurl="http://www.example.com/bugs/2",
247
252
 
248
253
    >>> edited_bug.setPrivate(False, getUtility(ILaunchBag).user)
249
254
    True
250
 
    >>> changed = edited_bug.setSecurityRelated(False, getUtility(ILaunchBag).user)
 
255
    >>> changed = edited_bug.setSecurityRelated(
 
256
    ...     False, getUtility(ILaunchBag).user)
251
257
    >>> bug_delta = BugDelta(
252
258
    ...     bug=edited_bug,
253
259
    ...     bugurl="http://www.example.com/bugs/2",