~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-10-18 05:47:37 UTC
  • mfrom: (14157.2.5 bug-876171)
  • Revision ID: launchpad@pqm.canonical.com-20111018054737-s0b72mtu8grdpwfy
[r=stevenk][bug=876171] obsolete-distroseries.py will now schedule
        deletion of any publications that remain uncondemned.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1634
1634
    def label(self):
1635
1635
        return self.getSearchPageHeading()
1636
1636
 
1637
 
    @property
1638
 
    def context_description(self):
1639
 
        """See `BugTaskSearchListingView`."""
1640
 
        return ("in %s related to %s" %
1641
 
                (self.current_package.displayname, self.context.displayname))
1642
 
 
1643
1637
 
1644
1638
class RelevantMilestonesMixin:
1645
1639
    """Mixin to narrow the milestone list to only relevant milestones."""
1700
1694
            assignee_params, subscriber_params, owner_params,
1701
1695
            commenter_params, prejoins=prejoins)
1702
1696
 
1703
 
    @property
1704
 
    def context_description(self):
1705
 
        """See `BugTaskSearchListingView`."""
1706
 
        return "related to %s" % self.context.displayname
1707
 
 
1708
1697
    def getSearchPageHeading(self):
1709
 
        return "Bugs %s" % self.context_description
 
1698
        return "Bugs related to %s" % self.context.displayname
1710
1699
 
1711
1700
    def getAdvancedSearchButtonLabel(self):
1712
 
        return "Search bugs %s" % self.context_description
 
1701
        return "Search bugs related to %s" % self.context.displayname
1713
1702
 
1714
1703
    def getSimpleSearchURL(self):
1715
1704
        return canonical_url(self.context, view_name="+bugs")
1756
1745
        """Should the tags combinator widget show on the search page?"""
1757
1746
        return False
1758
1747
 
1759
 
    @property
1760
 
    def context_description(self):
1761
 
        """See `BugTaskSearchListingView`."""
1762
 
        return "affecting %s" % self.context.displayname
1763
 
 
1764
1748
    def getSearchPageHeading(self):
1765
1749
        """The header for the search page."""
1766
 
        return "Bugs %s" % self.context_description
 
1750
        return "Bugs affecting %s" % self.context.displayname
1767
1751
 
1768
1752
    def getAdvancedSearchButtonLabel(self):
1769
1753
        """The Search button for the advanced search page."""
1770
 
        return "Search bugs %s" % self.context_description
 
1754
        return "Search bugs affecting %s" % self.context.displayname
1771
1755
 
1772
1756
    def getSimpleSearchURL(self):
1773
1757
        """Return a URL that can be used as an href to the simple search."""
1815
1799
        """Should the tags combinator widget show on the search page?"""
1816
1800
        return False
1817
1801
 
1818
 
    @property
1819
 
    def context_description(self):
1820
 
        """See `BugTaskSearchListingView`."""
1821
 
        return "assigned to %s" % self.context.displayname
1822
 
 
1823
1802
    def getSearchPageHeading(self):
1824
1803
        """The header for the search page."""
1825
 
        return "Bugs %s" % self.context_description
 
1804
        return "Bugs assigned to %s" % self.context.displayname
1826
1805
 
1827
1806
    def getAdvancedSearchButtonLabel(self):
1828
1807
        """The Search button for the advanced search page."""
1829
 
        return "Search bugs %s" % self.context_description
 
1808
        return "Search bugs assigned to %s" % self.context.displayname
1830
1809
 
1831
1810
    def getSimpleSearchURL(self):
1832
1811
        """Return a URL that can be used as an href to the simple search."""
1861
1840
        return sup.searchUnbatched(
1862
1841
            searchtext, context, extra_params, prejoins)
1863
1842
 
1864
 
    @property
1865
 
    def context_description(self):
1866
 
        """See `BugTaskSearchListingView`."""
1867
 
        return "commented on by %s" % self.context.displayname
1868
 
 
1869
1843
    def getSearchPageHeading(self):
1870
1844
        """The header for the search page."""
1871
 
        return "Bugs %s" % self.context_description
 
1845
        return "Bugs commented on by %s" % self.context.displayname
1872
1846
 
1873
1847
    def getAdvancedSearchButtonLabel(self):
1874
1848
        """The Search button for the advanced search page."""
1875
 
        return "Search bugs %s" % self.context_description
 
1849
        return "Search bugs commented on by %s" % self.context.displayname
1876
1850
 
1877
1851
    def getSimpleSearchURL(self):
1878
1852
        """Return a URL that can be used as an href to the simple search."""
1910
1884
        return sup.searchUnbatched(
1911
1885
            searchtext, context, extra_params, prejoins)
1912
1886
 
1913
 
    @property
1914
 
    def context_description(self):
1915
 
        """See `BugTaskSearchListingView`."""
1916
 
        return "reported by %s" % self.context.displayname
1917
 
 
1918
1887
    def getSearchPageHeading(self):
1919
1888
        """The header for the search page."""
1920
 
        return "Bugs %s" % self.context_description
 
1889
        return "Bugs reported by %s" % self.context.displayname
1921
1890
 
1922
1891
    def getAdvancedSearchButtonLabel(self):
1923
1892
        """The Search button for the advanced search page."""
1924
 
        return "Search bugs %s" % self.context_description
 
1893
        return "Search bugs reported by %s" % self.context.displayname
1925
1894
 
1926
1895
    def getSimpleSearchURL(self):
1927
1896
        """Return a URL that can be used as an href to the simple search."""
1969
1938
        """Should the team subscribed bugs portlet be shown?"""
1970
1939
        return True
1971
1940
 
1972
 
    @property
1973
 
    def context_description(self):
1974
 
        """See `BugTaskSearchListingView`."""
1975
 
        return "%s is subscribed to" % self.context.displayname
1976
 
 
1977
1941
    def getSearchPageHeading(self):
1978
1942
        """The header for the search page."""
1979
 
        return "Bugs %s" % self.context_description
 
1943
        return "Bugs %s is subscribed to" % self.context.displayname
1980
1944
 
1981
1945
    def getAdvancedSearchButtonLabel(self):
1982
1946
        """The Search button for the advanced search page."""