l.r.m.d.DistributionSourcePackageInDatabase(Storm) : class documentation

Part of lp.registry.model.distributionsourcepackage View In Hierarchy

Temporary class to allow access to the database.
Method currentrelease See IDistributionSourcePackage.
Class Method get Get a DSP given distribution and source package name.
Class Method getDirect Get a DSP given distribution and source package name.
Class Method new Create a new DSP with the given parameters.
@property
def currentrelease(self):
See IDistributionSourcePackage.
@classmethod
def get(cls, distribution, sourcepackagename):
Get a DSP given distribution and source package name.

Attempts to use a cached (distro_id, spn_id) --> dsp_id mapping to avoid hitting the database.

@classmethod
def getDirect(cls, distribution, sourcepackagename):
Get a DSP given distribution and source package name.

Caches the (distro_id, spn_id) --> dsp_id mapping, but does not otherwise use the cache; it always goes to the database.

@classmethod
def new(cls, distribution, sourcepackagename, is_upstream_link_allowed=False):
Create a new DSP with the given parameters.

Caches the (distro_id, spn_id) --> dsp_id mapping.

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