l.s.b.p.PackageSearchViewBase(LaunchpadView) : class documentation

Part of lp.soyuz.browser.packagesearch View In Hierarchy

Known subclasses: lp.registry.browser.distribution.DistributionPackageSearchView, lp.registry.browser.distroseries.DistroSeriesPackageSearchView, lp.soyuz.browser.distroarchseries.DistroArchSeriesPackageSearchView

A common package search interface
Method initialize Save the search text set by the user.
Method search_requested Return whether the current view included a search request.
Method matches Return the number of matched search results.
Method detailed Return whether detailed results should be provided.
Method batchnav Return the batch navigator for the search results.
Method search_results Search for packages matching the request text.
Method contextSpecificSearch Call the context specific search.
def initialize(self):
Save the search text set by the user.
@property
def search_requested(self):
Return whether the current view included a search request.
@cachedproperty
def matches(self):
Return the number of matched search results.
@property
def detailed(self):
Return whether detailed results should be provided.
@cachedproperty
def batchnav(self):
Return the batch navigator for the search results.
@cachedproperty
def search_results(self):
Search for packages matching the request text.

Try to find the packages that match the given text, then present those as a list. Cache previous results so the search is only done once.

def contextSpecificSearch(self):
Call the context specific search.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.