~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/doc/spec-mail-exploder.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-03 11:23:34 UTC
  • mfrom: (13457.6.16 upgrade-stderr)
  • Revision ID: launchpad@pqm.canonical.com-20110803112334-acnupsa7jmzmdeet
[r=stevenk][bug=819751] Fix the implementation of several methods in
 LoggingUIFactory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
First, let's take a look at how a Moin change notification looks like:
11
11
 
12
 
    >>> from lp.services.mail.tests.helpers import read_test_message
 
12
    >>> from canonical.launchpad.mail.ftests import read_test_message
13
13
    >>> moin_change = read_test_message('moin-change.txt')
14
14
 
15
15
It contains some headers, which are of no use to us, and the body is
56
56
The mail handler that handles mail on notifications@specs.launchpad.net
57
57
is BlueprintHandler.
58
58
 
59
 
    >>> from lp.services.config import config
 
59
    >>> from canonical.config import config
60
60
    >>> from lp.services.mail.handlers import mail_handlers
61
61
    >>> handler = mail_handlers.get(config.launchpad.specs_domain)
62
62
    >>> handler is not None
97
97
 
98
98
We use a logger to see what the handler does:
99
99
 
100
 
    >>> from lp.services.scripts import log
 
100
    >>> from canonical.launchpad.scripts import log
101
101
    >>> OLD_LOG_LEVEL = log._log.getEffectiveLevel()
102
102
    >>> log._log.setLevel(10)
103
103