l.r.b.d.SeriesStatusMixin : class documentation

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

Known subclasses: lp.registry.browser.distroseries.DistroSeriesAdminView, lp.registry.browser.distroseries.DistroSeriesEditView

A mixin that provides status field support.
Method createStatusField Create the 'status' field.
Method updateDateReleased Update the datereleased field if the status is set to CURRENT.
def createStatusField(self):
Create the 'status' field.

Create the status vocabulary according to the current distroseries
status:
 * stable   -> CURRENT, SUPPORTED, OBSOLETE
 * unstable -> EXPERIMENTAL, DEVELOPMENT, FROZEN, FUTURE, CURRENT
def updateDateReleased(self, status):
Update the datereleased field if the status is set to CURRENT.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.