~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Graham Binns
  • Date: 2010-08-16 13:40:20 UTC
  • mto: This revision was merged to the branch mainline in revision 11383.
  • Revision ID: graham@canonical.com-20100816134020-53kt94vkh7l62eeg
Undid previous change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1405
1405
 
1406
1406
    >>> from lp.registry.interfaces.product import IProductSet
1407
1407
    >>> from lp.registry.interfaces.structuralsubscription import (
1408
 
    ...     SubscriptionNotificationLevel)
 
1408
    ...     BugNotificationLevel)
1409
1409
    >>> firefox = getUtility(IProductSet).getByName('firefox')
1410
1410
    >>> mr_no_privs = getUtility(IPersonSet).getByName('no-priv')
1411
1411
    >>> subscription_no_priv = firefox.addBugSubscription(
1480
1480
    >>> flush_notifications()
1481
1481
    >>> switch_db_to_launchpad()
1482
1482
    >>> subscription_no_priv.bug_notification_level = (
1483
 
    ...     SubscriptionNotificationLevel.METADATA)
 
1483
    ...     BugNotificationLevel.METADATA)
1484
1484
    >>> switch_db_to_bugnotification()
1485
1485
 
1486
1486
    >>> comment = getUtility(IMessageSet).fromText(
1596
1596
    >>> flush_notifications()
1597
1597
    >>> switch_db_to_launchpad()
1598
1598
    >>> subscription_no_priv.bug_notification_level = (
1599
 
    ...     SubscriptionNotificationLevel.LIFECYCLE)
 
1599
    ...     BugNotificationLevel.LIFECYCLE)
1600
1600
    >>> switch_db_to_bugnotification()
1601
1601
 
1602
1602
    >>> bug_one.addChangeNotification('** Summary changed to: something.',