~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/message-holds.txt

  • Committer: Stuart Bishop
  • Date: 2012-01-05 07:57:21 UTC
  • mfrom: (14635 devel)
  • mto: This revision was merged to the branch mainline in revision 14636.
  • Revision ID: stuart.bishop@canonical.com-20120105075721-ol7khggaclh7dgqj
Merged rocketfuel into db-deploy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
    >>> login('no-priv@canonical.com')
381
381
    >>> team_three, list_three = mailinglists_helper.new_team(
382
382
    ...     'test-three', True)
383
 
    >>> sorted(email.email for email in list_three.getSenderAddresses())
 
383
    >>> sorted(list_three.getSenderAddresses())
384
384
    [u'no-priv@canonical.com']
385
385
 
386
386
Salgado posts a message to the list, but because he is not a team member, it
405
405
    >>> held_message.acknowledge()
406
406
    >>> transaction.commit()
407
407
 
408
 
    >>> sorted(email.email for email in list_three.getSenderAddresses())
 
408
    >>> sorted(list_three.getSenderAddresses())
409
409
    [u'no-priv@canonical.com']
410
410
 
411
411
    >>> from lp.registry.interfaces.mailinglist import IMailingListSet
434
434
 
435
435
Now, Salgado is on the list of approved posters.
436
436
 
437
 
    >>> sorted(email.email for email in list_three.getSenderAddresses())
 
437
    >>> sorted(list_three.getSenderAddresses())
438
438
    [u'guilherme.salgado@canonical.com', u'no-priv@canonical.com']
439
439
 
440
440
    >>> bulk_addresses = mailinglist_set.getSenderAddresses(['test-three'])
444
444
But he will still not get messages delivered to his address, since he's not
445
445
subscribed to the team mailing list.
446
446
 
447
 
    >>> sorted(email.email for email in list_three.getSubscribedAddresses())
 
447
    >>> sorted(list_three.getSubscribedAddresses())
448
448
    []
449
449
 
450
450
Of course, Salgado still cannot post to a mailing list that he has not been
452
452
 
453
453
    >>> team_four, list_four = mailinglists_helper.new_team(
454
454
    ...     'test-four', True)
455
 
    >>> sorted(email.email for email in list_four.getSenderAddresses())
 
455
    >>> sorted(list_four.getSenderAddresses())
456
456
    [u'no-priv@canonical.com']
457
457
 
458
458