Part of lp.registry.interfaces.sourcepackage View In Hierarchy
Known implementations: lp.registry.model.sourcepackage.SourcePackage
Attribute | id | ID |
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 | bugtasks | Bug Tasks that reference this Source Package name in the context of this distribution. |
Attribute | product | The best guess we have as to the Launchpad Project associated with this SourcePackage. |
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 source package releases 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. |
Method | __getitem__ | Return the source package release with the given version in this |
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 | 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. |
Method | setBranch | Set the official branch for the given pocket of this package. |
Attribute | shouldimport | Whether we should import this or not. |
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. |
Method | createBug | Create a new bug on this target. |
Inherited from IHasBugs (via IBugTarget):
Attribute | open_bugtasks | A list of open bugTasks for this target. |
Attribute | closed_bugtasks | A list of closed bugTasks for this target. |
Attribute | inprogress_bugtasks | A list of in-progress bugTasks for this target. |
Attribute | high_bugtasks | A list of high importance BugTasks for this target. |
Attribute | critical_bugtasks | A list of critical BugTasks for this target. |
Attribute | new_bugtasks | A list of New BugTasks for this target. |
Attribute | unassigned_bugtasks | A list of unassigned BugTasks for this target. |
Attribute | all_bugtasks | A list of all BugTasks ever reported for this target. |
Attribute | has_bugtasks | True if a BugTask has ever been reported for this target. |
Method | searchTasks | Search the IBugTasks reported on this entity. |
Method | getBugCounts | Return a dict with the number of bugs in each possible status. |
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 | getUsedBugTags | Return the tags used by the context as a sorted list of strings. |
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 IHasTranslationTemplates:
Bool | has_translation_templates | Undocumented |
Bool | has_current_translation_templates | Undocumented |
Method | getTemplatesCollection | Return templates as a TranslationTemplatesCollection . |
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 | getObsoleteTranslationTemplates | Return an iterator over its not active translation templates. |
Method | getTranslationTemplates | Return an iterator over all its translation templates. |
Method | getTranslationTemplateFormats | A list of native formats for all current translation templates. |
Method | getTemplatesAndLanguageCounts | List tuples of POTemplate and its language count. |
This is required to make source packages usable as dictionary keeps since the __eq__ method is provided.
Sourcepackages compare equal only if their distroseries and sourcepackagename compare equal.
Sourcepackages compare not equal if either of their distroseries or sourcepackagename compare not equal.
ISuiteSourcePackage
for this package in 'pocket'.Parameters | A DBItem of PackagePublishingPocket . | |
Returns | An ISuiteSourcePackage . |
Parameters | A DBItem of PackagePublishingPocket . | |
Returns | A string. |
Parameters | A PackagePublishingPocket . | |
Returns | An IBranch . |
Parameters | A PackagePublishingPocket . | |
branch | The branch to set as the official branch. | |
registrant | The individual who created this link. | |
Returns | None |
If 'component' is a partner component, then the default archive is the partner archive. Otherwise, the primary archive of the associated distribution.
Parameters | component | The IComponent to base the default archive
decision on. If None, defaults to the last published component. |
Returns | IArchive . | |
Raises | NoPartnerArchive | If returning the partner archive is appropriate, but no partner archive exists. |