l.r.i.s.ISourcePackagePublic(IBugTarget, IHasBranches, IHasMergeProposals, IHasOfficialBugTags, IHasCodeImports, IHasTranslationImports, IHasTranslationTemplates, IHasDrivers, IHasOwner) : interface documentation

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

Known subclasses: lp.registry.interfaces.webservice.ISourcePackage

Public attributes for SourcePackage.
Attribute displayname Display name (deprecated)
Attribute path A path to this package, <distro>/<series>/<package>
Attribute title Title.
Attribute summary A description of the binary packages built from this package.
Attribute format Source Package Format. This is the format of the current source package release for this name in this distribution or distroseries. Calling this when there is no current sourcepackagerelease will raise an exception.
Attribute distinctreleases Return a distinct list of sourcepackagepublishinghistory for this source package.
Attribute sourcepackagename SourcePackageName
Attribute releases The full set of source package releases that have been published in this distroseries under this source package name. The list should be sorted by version number.
Attribute currentrelease The latest published SourcePackageRelease
Attribute direct_packaging Return the Packaging record that is explicitly for this distroseries and source package name, or None if such a record does not exist. You should probably use ISourcePackage.packaging, which will also look through the distribution ancestry to find a relevant packaging record.
Attribute packaging The best Packaging record we have for this source package. If we have one for this specific distroseries and sourcepackagename, it will be returned, otherwise we look for a match in parent and ubuntu distro seriess.
Attribute published_by_pocket The set of source package releases currently published in this distro series, organised by pocket. The result is a dictionary, with the pocket dbschema as a key, and a list of {'spr': source package release, 'component_name': component name} as the value.
Attribute linked_branches A mapping of pockets to officially linked branches, ordered by pocket enum value.
Attribute development_version This package on the distro's current series.
Attribute distribution_sourcepackage The IDistributionSourcePackage for this source package.
Attribute drivers The drivers for the distroseries for this source package.
Attribute owner The owner of the distroseries for this source package.
Method __hash__ Sourcepackage hash method.
Method __eq__ Sourcepackage comparison method.
Method __ne__ Sourcepackage comparison method.
Method setPackaging Update the existing packaging record, or create a new packaging
Method setPackagingReturnSharingDetailPermissions Like setPackaging(), but returns getSharingDetailPermissions().
Method deletePackaging Delete the packaging for this sourcepackage.
Method getSharingDetailPermissions Return a dictionary of user permissions for +sharing-details page.
Method getSuiteSourcePackage Return the ISuiteSourcePackage for this package in 'pocket'.
Method getPocketPath Get the path to the given pocket of this package.
Method getBranch Get the official branch for this package in the given pocket.
Object latest_published_component Undocumented
Method get_default_archive Get the default archive of this package.
Method getLatestTranslationsUploads Find latest Translations tarballs as produced by Soyuz.
Method linkedBranches Get the official branches for this package.

Inherited from IBugTarget:

Attribute bugtargetdisplayname A display name for this bug target
Attribute bugtargetname The target as shown in mail notifications.
Attribute pillar The pillar containing this target.
Bool enable_bugfiling_duplicate_search Undocumented
Method createBug Create a new bug on this target.

Inherited from IHasBugs (via IBugTarget):

Method searchTasks Search the IBugTasks reported on this entity.
Method getBugTaskWeightFunction Return a function that is used to weight the bug tasks.

Inherited from IHasBranches:

Method getBranches Returns all branches with the given lifecycle status.

Inherited from IHasMergeProposals:

Method getMergeProposals Returns all merge proposals of a given status.

Inherited from IHasOfficialBugTags:

Method getUsedBugTagsWithOpenCounts Return name and bug count of tags having open bugs.
Method _getOfficialTagClause Get the storm clause for finding this targets tags.

Inherited from IHasCodeImports:

Method newCodeImport Create a new code import.

Inherited from IHasTranslationImports:

Method getFirstEntryToImport Return the first entry of the queue ready to be imported.
Method getTranslationImportQueueEntries Return entries in the translation import queue for this entity.

Inherited from IHasTranslationTemplates:

Bool has_translation_templates Undocumented
Bool has_current_translation_templates Undocumented
Bool has_obsolete_translation_templates Undocumented
Bool has_sharing_translation_templates Undocumented
Bool has_translation_files Undocumented
Method getTemplatesCollection Return templates as a TranslationTemplatesCollection.
Method getSharingPartner Return the object on the other side of the packaging link.
Method getCurrentTemplatesCollection Return TranslationTemplatesCollection of current templates.
Method getCurrentTranslationTemplates Return an iterator over all active translation templates.
Method getCurrentTranslationFiles Return an iterator over all active translation files.
Method getTranslationTemplates Return an iterator over all its translation templates.
Method getTranslationTemplateByName Return the template with the given name or None.
Method getTranslationTemplateFormats A list of native formats for all current translation templates.

Inherited from IHasDrivers:

Method personHasDriverRights Does the given person have launchpad.Driver rights on this object?
displayname =
Display name (deprecated)
path =
A path to this package, <distro>/<series>/<package>
title =
Title.
summary =
A description of the binary packages built from this package.
format =
Source Package Format. This is the format of the current source package release for this name in this distribution or distroseries. Calling this when there is no current sourcepackagerelease will raise an exception.
distinctreleases =
Return a distinct list of sourcepackagepublishinghistory for this source package.
sourcepackagename =
SourcePackageName
releases =
The full set of source package releases that have been published in this distroseries under this source package name. The list should be sorted by version number.
currentrelease =
The latest published SourcePackageRelease of a source package with this name in the distribution or distroseries, or None if no source package with that name is published in this distroseries.
direct_packaging =
Return the Packaging record that is explicitly for this distroseries and source package name, or None if such a record does not exist. You should probably use ISourcePackage.packaging, which will also look through the distribution ancestry to find a relevant packaging record.
packaging =
The best Packaging record we have for this source package. If we have one for this specific distroseries and sourcepackagename, it will be returned, otherwise we look for a match in parent and ubuntu distro seriess.
published_by_pocket =
The set of source package releases currently published in this distro series, organised by pocket. The result is a dictionary, with the pocket dbschema as a key, and a list of {'spr': source package release, 'component_name': component name} as the value.
linked_branches =
A mapping of pockets to officially linked branches, ordered by pocket enum value.
development_version =
This package on the distro's current series.
distribution_sourcepackage =
The IDistributionSourcePackage for this source package.
drivers =
The drivers for the distroseries for this source package.
owner =
The owner of the distroseries for this source package.
def __hash__():
Sourcepackage hash method.

This is required to make source packages usable as dictionary keeps since the __eq__ method is provided.

def __eq__(other):
Sourcepackage comparison method.

Sourcepackages compare equal only if their distroseries and sourcepackagename compare equal.

def __ne__(other):
Sourcepackage comparison method.

Sourcepackages compare not equal if either of their distroseries or sourcepackagename compare not equal.

@operation_parameters(Reference(IProductSeries))
@call_with(REQUEST_USER)
@export_write_operation()
@operation_for_version('devel')
def setPackaging(productseries, owner):
Update the existing packaging record, or create a new packaging record, that links the source package to the given productseries, and record that it was done by the owner.
@operation_parameters(Reference(IProductSeries))
@call_with(REQUEST_USER)
@export_write_operation()
@operation_for_version('devel')
def setPackagingReturnSharingDetailPermissions(productseries, owner):
Like setPackaging(), but returns getSharingDetailPermissions().

This method is intended for AJAX usage on the +sharing-details page.

@export_write_operation()
@operation_for_version('devel')
def deletePackaging():
Delete the packaging for this sourcepackage.
def getSharingDetailPermissions():
Return a dictionary of user permissions for +sharing-details page.

This shows whether the user can change - The project series - The project series target branch - The project series autoimport mode - The project translation usage setting

def getSuiteSourcePackage(pocket):
Return the ISuiteSourcePackage for this package in 'pocket'.
ParameterspocketA DBItem of PackagePublishingPocket.
ReturnsAn ISuiteSourcePackage.
def getPocketPath(pocket):
Get the path to the given pocket of this package.
ParameterspocketA DBItem of PackagePublishingPocket.
ReturnsA string.
@operation_parameters(Choice(_('Pocket'), True, PackagePublishingPocket))
@operation_returns_entry(Interface)
@export_read_operation()
def getBranch(pocket):
Get the official branch for this package in the given pocket.
ParameterspocketA PackagePublishingPocket.
ReturnsAn IBranch.
latest_published_component =
Undocumented
def get_default_archive(component=None):
Get the default archive of this package.

If 'component' is a partner component, then the default archive is the partner archive. Otherwise, the primary archive of the associated distribution.

ParameterscomponentThe IComponent to base the default archive decision on. If None, defaults to the last published component.
ReturnsIArchive.
RaisesNoPartnerArchiveIf returning the partner archive is appropriate, but no partner archive exists.
def getLatestTranslationsUploads():
Find latest Translations tarballs as produced by Soyuz.

:return: A list of `ILibraryFileAlias`es, usually of size zero
    or one.  If not, they are sorted from oldest to newest.
@export_read_operation()
def linkedBranches():
Get the official branches for this package.

This operation returns a {Pocket-name : IBranch} dict.

ReturnsA {Pocket-name : IBranch} dict.
API Documentation for Launchpad, generated by pydoctor at 2019-12-08 00:00:15.