~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mailman/doc/recovery.txt

Merge db-stable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
Mailman and Launchpad should eventually resynchronize their state
14
14
automatically.
15
15
 
 
16
    >>> from canonical.testing.layers import BaseLayer
 
17
    >>> root_url = BaseLayer.appserver_root_url()
16
18
    >>> browser = Browser('no-priv@canonical.com:test')
17
 
    >>> browser.open('http://launchpad.dev:8085/people/+newteam')
 
19
    >>> browser.open('%s/people/+newteam' % root_url)
18
20
    >>> browser.getControl(name='field.name').value = 'itest-one'
19
21
    >>> browser.getControl('Display Name').value = 'ITest One'
20
22
    >>> browser.getControl(name='field.subscriptionpolicy').displayValue = [
37
39
 
38
40
    >>> from zope.component import getUtility
39
41
    >>> from zope.security.proxy import removeSecurityProxy
40
 
    >>> from canonical.launchpad.interfaces import (
41
 
    ...     IMailingListSet, MailingListStatus)
 
42
    >>> from lp.registry.interfaces.mailinglist import (
 
43
    ...     IMailingListSet,
 
44
    ...     MailingListStatus,
 
45
    ...     )
42
46
    >>> from canonical.launchpad.ftests import login, logout
43
47
    >>> login('admin@canonical.com')
44
48
    >>> mailing_list_set = getUtility(IMailingListSet)
56
60
However, if the list status on Launchpad is CONSTRUCTING, but the mailing list
57
61
does not actually exist in Mailman, then Mailman will create it.
58
62
 
59
 
    >>> browser.open('http://launchpad.dev:8085/people/+newteam')
 
63
    >>> browser.open('%s/people/+newteam' % root_url)
60
64
    >>> browser.getControl(name='field.name').value = 'itest-two'
61
65
    >>> browser.getControl('Display Name').value = 'ITest Two'
62
66
    >>> browser.getControl(name='field.subscriptionpolicy').displayValue = [