~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
792
792
simple "yes":
793
793
 
794
794
    >>> with lp_dbuser():
795
 
    ...     bug_three.setSecurityRelated(True)
 
795
    ...     bug_three.setSecurityRelated(True, getUtility(ILaunchBag).user)
796
796
    True
797
797
    >>> bug_three.security_related
798
798
    True
810
810
people who have ever commented on the bug. It's a space-separated
811
811
list.
812
812
 
813
 
    >>> for message in trigger_and_get_email_messages(bug_three):
814
 
    ...     print message.get('X-Launchpad-Bug-Commenters')
 
813
    >>> message = trigger_and_get_email_messages(bug_three)[0]
 
814
    >>> print message.get('X-Launchpad-Bug-Commenters')
815
815
    name12
816
816
 
817
817
    >>> from lp.registry.interfaces.person import IPersonSet
822
822
    ...     ignored = getUtility(IBugMessageSet).createMessage(
823
823
    ...         'Hungry', bug_three, foo_bar, "Make me a sandwich.")
824
824
 
825
 
    >>> for message in trigger_and_get_email_messages(bug_three):
826
 
    ...     print message.get('X-Launchpad-Bug-Commenters')
 
825
    >>> message = trigger_and_get_email_messages(bug_three)[0]
 
826
    >>> print message.get('X-Launchpad-Bug-Commenters')
827
827
    name12 name16
828
828
 
829
829
It only lists each user once, no matter how many comments they've
833
833
    ...     ignored = getUtility(IBugMessageSet).createMessage(
834
834
    ...         'Hungry', bug_three, foo_bar, "Make me a sandwich.")
835
835
 
836
 
    >>> for message in trigger_and_get_email_messages(bug_three):
837
 
    ...     print message.get('X-Launchpad-Bug-Commenters')
 
836
    >>> message = trigger_and_get_email_messages(bug_three)[0]
 
837
    >>> print message.get('X-Launchpad-Bug-Commenters')
838
838
    name12 name16
839
839
 
840
840
 
844
844
The X-Launchpad-Bug-Reporter header contains information about the Launchpad
845
845
user who originally reported the bug and opened the bug's first bug task.
846
846
 
847
 
    >>> for message in trigger_and_get_email_messages(bug_three):
848
 
    ...     print message.get('X-Launchpad-Bug-Reporter')
 
847
    >>> message = trigger_and_get_email_messages(bug_three)[0]
 
848
    >>> print message.get('X-Launchpad-Bug-Reporter')
849
849
    Foo Bar (name16)
850
850
 
851
851
 
1176
1176
    ----------------------------------------------------------------------
1177
1177
    To: owner@example.com
1178
1178
    ...
1179
 
    You received this bug notification because you are a member of 
 
1179
    You received this bug notification because you are a member of
1180
1180
    Addressless Team, which is subscribed to the bug report.
1181
1181
    ...
1182
1182
    ----------------------------------------------------------------------
1240
1240
    ----------------------------------------------------------------------
1241
1241
    To: owner@example.com
1242
1242
    ...
1243
 
    You received this bug notification because you are a member of 
 
1243
    You received this bug notification because you are a member of
1244
1244
    Addressless Team, which is subscribed to the bug report.
1245
1245
    ...
1246
1246
    ----------------------------------------------------------------------
1293
1293
    no comment for no-priv.
1294
1294
    <BLANKLINE>
1295
1295
    --
1296
 
    You received this bug notification because you are a member of 
 
1296
    You received this bug notification because you are a member of
1297
1297
    Addressless Team, which is subscribed to the bug report.
1298
1298
    ...
1299
1299
    ----------------------------------------------------------------------
1357
1357
    ----------------------------------------------------------------------
1358
1358
    To: owner@example.com
1359
1359
    ...
1360
 
    You received this bug notification because you are a member of 
 
1360
    You received this bug notification because you are a member of
1361
1361
    Addressless Team, which is subscribed to the bug report.
1362
1362
    ...
1363
1363
    ----------------------------------------------------------------------
1412
1412
    + Whatever else
1413
1413
    <BLANKLINE>
1414
1414
    --
1415
 
    You received this bug notification because you are a member of 
 
1415
    You received this bug notification because you are a member of
1416
1416
    Addressless Team, which is subscribed to the bug report.
1417
1417
    http://bugs.launchpad.dev/bugs/1
1418
1418
    ...
1479
1479
    ----------------------------------------------------------------------
1480
1480
    To: owner@example.com
1481
1481
    ...
1482
 
    You received this bug notification because you are a member of 
 
1482
    You received this bug notification because you are a member of
1483
1483
    Addressless Team, which is subscribed to the bug report.
1484
1484
    ...
1485
1485
    ----------------------------------------------------------------------