l.r.i.d.DistroSeriesVersionField(UniqueField) : class documentation

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

A class to ensure IDistroSeries has unique versions.
Method _content_iface Return the content interface.
Method _distribution Undocumented
Method _getByName Return the IDistroSeries for the specified distribution version.
Method _getByAttribute Return the content object with the given attribute.
Method _validate See UniqueField.

Inherited from UniqueField:

Method unchanged Return True if the attribute on the object is unchanged.
Method _isValueTaken Returns true if and only if the specified value is already taken.
@property
def _content_iface(self):
Return the content interface.

Override this in subclasses.

@property
def _distribution(self):
Undocumented
def _getByName(self, version):
Return the IDistroSeries for the specified distribution version.

The distribution is the context's distribution (which may the context itself); A version is unique to a distribution.

def _getByAttribute(self, version):
Return the content object with the given attribute.
def _validate(self, version):
See UniqueField.
API Documentation for Launchpad, generated by pydoctor at 2019-08-18 00:00:05.