~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/subscribers/branchmergeproposal.py

  • Committer: Tim Penhey
  • Date: 2010-10-18 03:39:28 UTC
  • mto: This revision was merged to the branch mainline in revision 11759.
  • Revision ID: tim.penhey@canonical.com-20101018033928-oe0gj03xow6epuet
Add an extra event for the needs review, but keep the same functionality for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    Also create a job to email the subscribers about the new proposal.
28
28
    """
29
29
    getUtility(IUpdatePreviewDiffJobSource).create(merge_proposal)
 
30
 
 
31
 
 
32
def merge_proposal_needs_review(merge_proposal, event):
 
33
    """A new merge proposal needs a review.
 
34
 
 
35
    This event is raised when the proposal moves from work in progress to
 
36
    needs review.
 
37
    """
30
38
    getUtility(IMergeProposalNeedsReviewEmailJobSource).create(
31
39
        merge_proposal)
32
40