l.r.b.p.PersonRelatedSoftwareView(LaunchpadView) : class documentation

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

Known subclasses: lp.registry.browser.person.PersonMaintainedPackagesView, lp.registry.browser.person.PersonOwnedTeamsView, lp.registry.browser.person.PersonPPAPackagesView, lp.registry.browser.person.PersonRelatedProjectsView, lp.registry.browser.person.PersonSynchronisedPackagesView, lp.registry.browser.person.PersonUploadedPackagesView

View for +related-packages.
Method max_results_to_display Undocumented
Method page_title Undocumented
Method related_projects Return a list of project dicts owned or driven by this person.
Method first_five_related_projects Return first five projects owned or driven by this person.
Method related_projects_count The number of project owned or driven by this person.
Method has_more_related_projects Does this person have more than five related projects?
Method projects_header_message Undocumented
Method filterPPAPackageList Remove packages that the user is not allowed to see.
Method latest_uploaded_ppa_packages_with_stats Return the sourcepackagereleases uploaded to PPAs by this person.
Method latest_maintained_packages_with_stats Return the latest maintained packages, including stats.
Method latest_uploaded_but_not_maintained_packages_with_stats Return the latest uploaded packages, including stats.
Method latest_synchronised_publishings_with_stats Return the latest synchronised publishings, including stats.
Method setUpBatch Set up the batch navigation for the page being viewed.
Method _related_projects Return all projects owned or driven by this person.
Method _tableHeaderMessage Format a header message for the tables on the summary page.
Method _getDecoratedPackagesSummary Helper returning decorated packages for the summary page.
Method _getDecoratedPublishingsSummary Helper returning decorated publishings for the summary page.
Method _calculateBuildStats Calculate failed builds and needs_build state.
Method _addStatsToPackages Add stats to the given package releases, and return them.
Method _addStatsToPublishings Add stats to the given publishings, and return them.
@property
def max_results_to_display(self):
Undocumented
@property
def page_title(self):
Undocumented
@cachedproperty
def related_projects(self):
Return a list of project dicts owned or driven by this person.

The number of projects returned is limited by max_results_to_display. A project dict has the following keys: title, url, is_owner, is_driver, is_bugsupervisor.

@cachedproperty
def first_five_related_projects(self):
Return first five projects owned or driven by this person.
@cachedproperty
def related_projects_count(self):
The number of project owned or driven by this person.
@cachedproperty
def has_more_related_projects(self):
Does this person have more than five related projects?
@cachedproperty
def projects_header_message(self):
Undocumented
@cachedproperty
def _related_projects(self):
Return all projects owned or driven by this person.
def _tableHeaderMessage(self, count, label='package'):
Format a header message for the tables on the summary page.
def filterPPAPackageList(self, packages):
Remove packages that the user is not allowed to see.

Given a list of PPA packages, some might be in a PPA that the user is not allowed to see, so they are filtered out of the list.

def _getDecoratedPackagesSummary(self, packages):
Helper returning decorated packages for the summary page.

The packages returned are limited to self.max_results_to_display and decorated with the stats required in the page template. The header_message is the text to be displayed at the top of the results table in the template.

ParameterspackagesA SelectResults that contains the query
ReturnsA tuple of (packages, header_message).
def _getDecoratedPublishingsSummary(self, publishings):
Helper returning decorated publishings for the summary page.

The publishings returned are limited to self.max_results_to_display and decorated with the stats required in the page template. The header_message is the text to be displayed at the top of the results table in the template.

ParameterspublishingsA SelectResults that contains the query
ReturnsA tuple of (publishings, header_message).
@property
def latest_uploaded_ppa_packages_with_stats(self):
Return the sourcepackagereleases uploaded to PPAs by this person.

Results are filtered according to the permission of the requesting user to see private archives.

@property
def latest_maintained_packages_with_stats(self):
Return the latest maintained packages, including stats.
@property
def latest_uploaded_but_not_maintained_packages_with_stats(self):
Return the latest uploaded packages, including stats.

Don't include packages that are maintained by the user.

@property
def latest_synchronised_publishings_with_stats(self):
Return the latest synchronised publishings, including stats.
def _calculateBuildStats(self, package_releases):
Calculate failed builds and needs_build state.

For each of the package_releases, calculate the failed builds and the needs_build state, and return a tuple of two dictionaries, one containing the failed builds and the other containing True or False according to the needs_build state, both keyed by the source package release.

def _addStatsToPackages(self, package_releases):
Add stats to the given package releases, and return them.
def _addStatsToPublishings(self, publishings):
Add stats to the given publishings, and return them.
def setUpBatch(self, packages):
Set up the batch navigation for the page being viewed.

This method creates the BatchNavigator and converts its results batch into a list of decorated sourcepackagereleases.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.