~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugalsoaffects.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-14 00:36:27 UTC
  • mfrom: (13405.7.4 bugtracker-refactor)
  • Revision ID: launchpad@pqm.canonical.com-20110714003627-5te01hiwpfi8bxlv
[r=jtv][no-qa] Minor cleanup refactoring for bugtracker component
        code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
659
659
 
660
660
        if not target.bugtracker:
661
661
            return None
662
 
        else:
663
 
            bug = self.context.bug
664
 
            title = bug.title
665
 
            description = u"Originally reported at:\n  %s\n\n%s" % (
666
 
                canonical_url(bug), bug.description)
667
 
            return target.bugtracker.getBugFilingAndSearchLinks(
668
 
                target.remote_product, title, description)
 
662
 
 
663
        bug = self.context.bug
 
664
        title = bug.title
 
665
        description = u"Originally reported at:\n  %s\n\n%s" % (
 
666
            canonical_url(bug), bug.description)
 
667
        return target.bugtracker.getBugFilingAndSearchLinks(
 
668
            target.remote_product, title, description)
669
669
 
670
670
 
671
671
class BugTrackerCreationStep(AlsoAffectsStep):