~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-02 23:29:39 UTC
  • mfrom: (13582.1.3 murder-poppy)
  • Revision ID: launchpad@pqm.canonical.com-20110802232939-bn6kxbaq765v5yc7
[r=julian-edwards][no-qa] Remove the old FTP-only poppy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3247
3247
        # iteration.
3248
3248
        bugtasks_by_package = bug.getBugTasksByPackageName(all_bugtasks)
3249
3249
 
3250
 
        latest_parent = None
3251
 
 
3252
3250
        for bugtask in all_bugtasks:
3253
 
            # Series bug targets only display the series name, so they
3254
 
            # must always be preceded by their parent context. Normally
3255
 
            # the parent will have a task, but if not we need to show a
3256
 
            # fake one.
3257
 
            if ISeriesBugTarget.providedBy(bugtask.target):
3258
 
                parent = bugtask.target.bugtarget_parent
3259
 
            else:
3260
 
                latest_parent = parent = bugtask.target
3261
 
 
3262
 
            if parent != latest_parent:
3263
 
                latest_parent = parent
3264
 
                bugtask_and_nomination_views.append(
3265
 
                    getMultiAdapter(
3266
 
                        (parent, self.request),
3267
 
                        name='+bugtasks-and-nominations-table-row'))
3268
 
 
3269
3251
            conjoined_master = bugtask.getConjoinedMaster(
3270
3252
                bugtasks, bugtasks_by_package)
3271
3253
            view = self._getTableRowView(