~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Francis J. Lacoste
  • Date: 2011-12-06 20:10:56 UTC
  • mfrom: (14448 devel)
  • mto: This revision was merged to the branch mainline in revision 14474.
  • Revision ID: francis.lacoste@canonical.com-20111206201056-jk8q5euywtd4vqk7
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
from zope.schema import Bool
51
51
from zope.security.interfaces import Unauthorized
52
52
 
 
53
from lazr.restful.utils import smartquote
 
54
 
53
55
from canonical.launchpad.browser.feeds import FeedsMixin
54
56
from canonical.launchpad.components.decoratedresultset import (
55
57
    DecoratedResultSet,
536
538
        return non_exact_matches.config(distinct=True)
537
539
 
538
540
    @property
 
541
    def page_title(self):
 
542
        return smartquote("Search %s's packages" % self.context.displayname)
 
543
 
 
544
    @property
539
545
    def search_by_binary_name(self):
540
546
        """Return whether the search is on binary names.
541
547
 
663
669
class DistributionArchivesView(LaunchpadView):
664
670
 
665
671
    @property
 
672
    def page_title(self):
 
673
        return '%s Copy Archives' % self.context.title
 
674
 
 
675
    @property
666
676
    def batchnav(self):
667
677
        """Return the batch navigator for the archives."""
668
678
        return BatchNavigator(self.archive_list, self.request)