~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[rs=buildbot-poller] automatic merge from stable. Revisions: 14442,
        14443 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2460
2460
        bug_target = self.context.context
2461
2461
        if IDistribution.providedBy(bug_target):
2462
2462
            return (
2463
 
                'bugsupervisor',
2464
 
                'securitycontact',
2465
2463
                'cve',
2466
2464
                )
2467
2465
        elif IDistroSeries.providedBy(bug_target):
2471
2469
                )
2472
2470
        elif IProduct.providedBy(bug_target):
2473
2471
            return (
2474
 
                'bugsupervisor',
2475
 
                'securitycontact',
2476
2472
                'cve',
2477
2473
                )
2478
2474
        elif IProductSeries.providedBy(bug_target):
2676
2672
            cache.objects.update(_getBatchInfo(batch_navigator.batch))
2677
2673
 
2678
2674
    @property
 
2675
    def show_config_portlet(self):
 
2676
        if (IDistribution.providedBy(self.context) or
 
2677
            IProduct.providedBy(self.context)):
 
2678
            return True
 
2679
        else:
 
2680
            return False
 
2681
 
 
2682
    @property
2679
2683
    def columns_to_show(self):
2680
2684
        """Returns a sequence of column names to be shown in the listing."""
2681
2685
        upstream_context = self._upstreamContext()