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

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

Known subclasses: lp.soyuz.browser.publishing.BinaryPublishingRecordView, lp.soyuz.browser.publishing.SourcePublishingRecordView

Base Publishing view class.
Method is_source Undocumented
Method is_binary Undocumented
Method date_last_changed Return the date of last change considering the publishing status.
Method wasDeleted Whether or not a publishing record deletion was requested.
Method wasSuperseded Whether or not a publishing record was superseded.
Method isPendingRemoval Whether or not a publishing record is marked for removal.
Method isRemoved Whether or not a publishing records was removed from the archive.
Method removal_comment Return the removal comment or 'None provided'.
Method phased_update_percentage Return the formatted phased update percentage, or empty.
@property
def is_source(self):
Undocumented
@property
def is_binary(self):
Undocumented
@property
def date_last_changed(self):

Return the date of last change considering the publishing status.

The date returned is as follows:
  • pending -> datecreated
  • published -> datepublished
  • superseded -> datesuperseded
  • deleted -> dateremoved
  • obsolete -> scheduleddeletiondate
def wasDeleted(self):
Whether or not a publishing record deletion was requested.

A publishing record deletion represents the explicit request from a archive-administrator (self.remove_by) to purge the published contents of this record from the archive for an arbitrary reason (self.removal_comment).

def wasSuperseded(self):
Whether or not a publishing record was superseded.

'Superseded' means that a new and higher version of this package was uploaded/built after it was published or the publishing attributes (section, component, priority/urgency) was modified.

def isPendingRemoval(self):
Whether or not a publishing record is marked for removal.

This package will be removed from the archive respecting the Soyuz 'death row' quarantine period and the absence of file references in the target archive.

def isRemoved(self):

Whether or not a publishing records was removed from the archive.

A publishing record (all files related to it) is removed from the archive disk once it pass through its quarantine period and it's not referred by any other archive publishing record. Archive removal represents the act of having its content purged from archive disk, such situation can be triggered for different status, each one representing a distinct step in the Soyuz publishing workflow:

  • SUPERSEDED -> the publication is not necessary since there is already a newer/higher/modified version available
  • DELETED -> the publishing was explicitly marked for removal by a archive-administrator, it's not wanted in the archive.
  • OBSOLETE -> the publication has become obsolete because its targeted distroseries has become obsolete (not supported by its developers).
@property
def removal_comment(self):
Return the removal comment or 'None provided'.
@property
def phased_update_percentage(self):
Return the formatted phased update percentage, or empty.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.