l.r.b.d.DistributionPackageSearchView(PackageSearchViewBase) : class documentation

Part of lp.registry.browser.distribution View In Hierarchy

Customised PackageSearchView for Distribution
Method initialize Save the search type if provided.
Method contextSpecificSearch See AbstractPackageSearchView.
Method page_title Undocumented
Method search_by_binary_name Return whether the search is on binary names.
Method source_search_url Return the equivalent search on source packages.
Method exact_matches Undocumented
Method has_exact_matches Undocumented
Method has_matches Undocumented
Method matching_binary_names Define the matching binary names for each result in the batch.
Method distroseries_names Define the distroseries for each package name in exact matches.
Method display_exact_matches Return whether exact match results should be displayed.
Method _listFirstFiveMatchingNames Returns a comma-separated list of the first five matching items

Inherited from PackageSearchViewBase:

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.
def initialize(self):
Save the search type if provided.
def contextSpecificSearch(self):
See AbstractPackageSearchView.
@property
def page_title(self):
Undocumented
@property
def search_by_binary_name(self):
Return whether the search is on binary names.

By default, we search by binary names, as this produces much better results. But the user may decide to search by sources, or in the case of other distributions, it will be the only option.

@property
def source_search_url(self):
Return the equivalent search on source packages.

By default, we search by binary names, but also provide a link to the equivalent source package search in some circumstances.

@cachedproperty
def exact_matches(self):
Undocumented
@property
def has_exact_matches(self):
Undocumented
@property
def has_matches(self):
Undocumented
@cachedproperty
def matching_binary_names(self):
Define the matching binary names for each result in the batch.
def _listFirstFiveMatchingNames(self, match_text, space_separated_list):
Returns a comma-separated list of the first five matching items
@cachedproperty
def distroseries_names(self):
Define the distroseries for each package name in exact matches.
@property
def display_exact_matches(self):
Return whether exact match results should be displayed.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.