~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-21 03:13:36 UTC
  • mfrom: (13302.8.27 bmp-inline-diffs)
  • Revision ID: launchpad@pqm.canonical.com-20110721031336-cterb0i4qytjsqzo
[r=danilo][bug=813349] Add inline diff expanders to revision
        summaries in merge proposal comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from lazr.lifecycle.event import ObjectModifiedEvent
39
39
from lazr.restful.interface import copy_field
40
40
from lazr.restful.interfaces import (
 
41
    IJSONRequestCache,
41
42
    IWebServiceClientRequest,
42
43
    )
43
44
import simplejson
596
597
    label = "Proposal to merge branch"
597
598
    schema = ClaimButton
598
599
 
 
600
    def initialize(self):
 
601
        super(BranchMergeProposalView, self).initialize()
 
602
        cache = IJSONRequestCache(self.request)
 
603
        cache.objects.update({
 
604
            'branch_diff_link':
 
605
                'https://%s/+loggerhead/%s/diff/' %
 
606
                (config.launchpad.code_domain,
 
607
                 self.context.source_branch.unique_name)
 
608
            })
 
609
 
599
610
    @action('Claim', name='claim')
600
611
    def claim_action(self, action, data):
601
612
        """Claim this proposal."""