l.s.b.a.ArchiveViewBase(LaunchpadView, SourcesListEntriesWidget) : class documentation

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

Known subclasses: lp.soyuz.browser.archive.ArchiveBuildsView, lp.soyuz.browser.archive.ArchiveEditDependenciesView, lp.soyuz.browser.archive.ArchiveSourcePackageListViewBase, lp.soyuz.browser.archive.BaseArchiveEditView

Common features for Archive view classes.
Method initialize Undocumented
Method private Undocumented
Method repository_usage Return a dictionary with usage details of this repository.
Method archive_label Return either 'PPA' or 'Archive' as the label for archives.
Method build_counters Return a dict representation of the build counters.
Method dependencies Undocumented
Method show_dependencies Whether or not to present the archive-dependencies section.
Method has_disabled_dependencies Whether this archive has disabled archive dependencies or not.
Method package_copy_requests Return any package copy requests associated with this archive.
Method disabled_warning_message Return an appropriate message if the archive is disabled.

Inherited from SourcesListEntriesWidget:

Method sources_list_entries Setup and return the sources list entries widget.
Method active_token Return the corresponding current token for this subscription.
Method archive_url Return an archive_url where available, or None.
Method has_sources Whether or not this PPA has any sources for the view.
def initialize(self):
Undocumented
@cachedproperty
def private(self):
Undocumented
@cachedproperty
def repository_usage(self):
Return a dictionary with usage details of this repository.
@property
def archive_label(self):
Return either 'PPA' or 'Archive' as the label for archives.

It is desired to use the name 'PPA' for branding reasons where appropriate, even though the template logic is the same (and hence not worth splitting off into a separate template or macro)

@cachedproperty
def build_counters(self):
Return a dict representation of the build counters.
@cachedproperty
def dependencies(self):
Undocumented
@property
def show_dependencies(self):
Whether or not to present the archive-dependencies section.

The dependencies section is presented if there are any dependency set or if the user has permission to change it.

@property
def has_disabled_dependencies(self):
Whether this archive has disabled archive dependencies or not.

Although, it will be True only if the requester has permission to edit the context archive (i.e. if the user can do something about it).

@cachedproperty
def package_copy_requests(self):
Return any package copy requests associated with this archive.
@property
def disabled_warning_message(self):
Return an appropriate message if the archive is disabled.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.