~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-04 22:21:41 UTC
  • mfrom: (14617.3.4 mailinglists-use-people)
  • Revision ID: launchpad@pqm.canonical.com-20120104222141-0g1fa43d7ibeuytg
[r=sinzui][no-qa] Clean up
        MailingList(Set).get(Subscribed|Sender)Address,
        and fix them to not use EmailAddress.account.

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