Merge lp:~abentley/launchpad/recipe-build-email into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2010-06-10 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 10992 |
| Proposed branch: | lp:~abentley/launchpad/recipe-build-email |
| Merge into: | lp:launchpad |
| Diff against target: |
508 lines (+273/-44) 8 files modified
lib/canonical/launchpad/emailtemplates/build-request.txt (+1/-0) lib/lp/buildmaster/model/buildbase.py (+11/-5) lib/lp/code/mail/branch.py (+8/-30) lib/lp/code/mail/sourcepackagerecipebuild.py (+65/-0) lib/lp/code/mail/tests/test_sourcepackagerecipebuild.py (+59/-0) lib/lp/code/model/sourcepackagerecipebuild.py (+13/-3) lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+59/-3) lib/lp/services/mail/basemailer.py (+57/-3) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/recipe-build-email |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jelmer Vernooij (community) | code | Approve on 2010-06-10 | |
| Paul Hummer (community) | code | 2010-06-09 | Approve on 2010-06-10 |
|
Review via email:
|
|||
Commit Message
Notification for sourcepackagere
Description of the Change
= Summary =
Fix bug #509893: Work out notifications for SourcePackageRe
== Proposed fix ==
Provide notifications to the person who requested the build in all cases.
== Pre-implementation notes ==
Preimplementation was with thumper.
== Implementation details ==
Moved RecipientReason into basemailer because it's a core part of how
BaseMailer functions. Added BaseMailer_
more conveniently.
Tweaked handle_
polymorphism to work.
== Tests ==
bin/test -t test_generateEmail -t test_notify -t test_handleStat
== Demo and Q/A ==
Request a build. An email should be sent when the build is complete.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
| Jelmer Vernooij (jelmer) wrote : | # |
Nice.
Is there a particular reason that forBuildRequester is a class method and makeRational is static?
I realize they weren't documented earlier, but it would be nice to have documentation for the arguments for ``handle_
| Aaron Bentley (abentley) wrote : | # |
makeRationale doesn't need to refer to its class, so it can be a static method. forBuildRequester does refer to its class, so it must be a class method.
handle_

Wow, the base mailer stuff has changed a lot since I last touched it. This looks good to land.