~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/person.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-02 16:31:43 UTC
  • mfrom: (13829.2.6 bug61428)
  • Revision ID: launchpad@pqm.canonical.com-20110902163143-wxpjkzsar15fickb
[r=allenap][bug=61428] Display the team portlet on both
 Person:+assignedbugs and Person:+subscribedbugs. Previously it was only shown
 on +assignedbugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2199
2199
    columns_to_show = ["id", "summary", "bugtargetdisplayname",
2200
2200
                       "importance", "status"]
2201
2201
    page_title = 'Assigned bugs'
 
2202
    view_name = '+assignedbugs'
2202
2203
 
2203
2204
    def searchUnbatched(self, searchtext=None, context=None,
2204
2205
                        extra_params=None, prejoins=[]):
2220
2221
        """Should the assignee widget be shown on the advanced search page?"""
2221
2222
        return False
2222
2223
 
2223
 
    def shouldShowAssignedToTeamPortlet(self):
 
2224
    def shouldShowTeamPortlet(self):
2224
2225
        """Should the team assigned bugs portlet be shown?"""
2225
2226
        return True
2226
2227
 
2345
2346
    columns_to_show = ["id", "summary", "bugtargetdisplayname",
2346
2347
                       "importance", "status"]
2347
2348
    page_title = 'Subscribed bugs'
 
2349
    view_name = '+subscribedbugs'
2348
2350
 
2349
2351
    def searchUnbatched(self, searchtext=None, context=None,
2350
2352
                        extra_params=None, prejoins=[]):
2362
2364
        return sup.searchUnbatched(
2363
2365
            searchtext, context, extra_params, prejoins)
2364
2366
 
 
2367
    def shouldShowTeamPortlet(self):
 
2368
        """Should the team subscribed bugs portlet be shown?"""
 
2369
        return True
 
2370
 
2365
2371
    def getSearchPageHeading(self):
2366
2372
        """The header for the search page."""
2367
2373
        return "Bugs %s is subscribed to" % self.context.displayname