l.r.m.s.SourcePackage(BugTargetBase, HasCodeImportsMixin, HasTranslationImportsMixin, HasTranslationTemplatesMixin, HasBranchesMixin, HasMergeProposalsMixin, HasDriversMixin) : class documentation

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

A source package, e.g. apache2, in a distroseries.

This object is not a true database object, but rather attempts to represent the concept of a source package in a distro series, with links to the relevant database objects.

Method __init__ Undocumented
Class Method new See ISourcePackageFactory.
Method __repr__ Undocumented
Method currentrelease Undocumented
Method path See ISourcePackage.
Method display_name Undocumented
Method bugtargetdisplayname See IBugTarget.
Method bugtargetname See IBugTarget.
Method bugtarget_parent See ISeriesBugTarget.
Method title See ISourcePackage.
Method summary See ISourcePackage.
Method distribution Undocumented
Method format Undocumented
Method releases See ISourcePackage.
Method distinctreleases Return all distinct SourcePackageReleases for this sourcepackage.
Method name Undocumented
Method productseries Undocumented
Method direct_packaging See ISourcePackage.
Method packaging See ISourcePackage
Method published_by_pocket See ISourcePackage.
Method development_version See ISourcePackage.
Method distribution_sourcepackage See ISourcePackage.
Method bug_reporting_guidelines See IBugTarget.
Method bug_reported_acknowledgement See IBugTarget.
Method enable_bugfiling_duplicate_search See IBugTarget.
Method official_bug_tags See IHasBugs.
Method getUsedBugTagsWithOpenCounts See IBugTarget.
Method drivers See IHasDrivers.
Method owner See IHasOwner.
Method pillar See IBugTarget.
Method series See ISeriesBugTarget.
Method getBugSummaryContextWhereClause See BugTargetBase.
Method setPackaging See ISourcePackage.
Method setPackagingReturnSharingDetailPermissions See ISourcePackage.
Method getSharingDetailPermissions Undocumented
Method deletePackaging See ISourcePackage.
Method __hash__ See ISourcePackage.
Method __eq__ See ISourcePackage.
Method __ne__ See ISourcePackage.
Method getBuildRecords See IHasBuildRecords
Method latest_published_component See ISourcePackage.
Method latest_published_component_name See ISourcePackage.
Method get_default_archive See ISourcePackage.
Method getTemplatesCollection See IHasTranslationTemplates.
Method getSharingPartner See IHasTranslationTemplates.
Method getBranch See ISourcePackage.
Method setBranch See ISourcePackage.
Method linked_branches See ISourcePackage.
Method getSuiteSourcePackage See ISourcePackage.
Method getPocketPath See ISourcePackage.
Method getLatestTranslationsUploads See ISourcePackage.
Method linkedBranches See ISourcePackage.
Method getBugTaskWeightFunction Provide a weight function to determine optimal bug task.
Method _getPublishingHistory Build a query and return a list of SourcePackagePublishingHistory.
Method _getFirstPublishingHistory As _getPublishingHistory, but just returns the first item.
Method _customizeSearchParams Customize search_params for this source package.
Method _getOfficialTagClause Undocumented

Inherited from BugTargetBase:

Method createBug See IBugTarget.

Inherited from HasBugsBase (via BugTargetBase):

Method searchTasks See IHasBugs.

Inherited from HasCodeImportsMixin:

Method newCodeImport See IHasCodeImports.

Inherited from HasTranslationImportsMixin:

Method getFirstEntryToImport See IHasTranslationImports.
Method getTranslationImportQueueEntries See IHasTranslationImports.

Inherited from HasTranslationTemplatesMixin:

Method getCurrentTemplatesCollection See IHasTranslationTemplates.
Method getCurrentTranslationTemplates See IHasTranslationTemplates.
Method has_translation_templates See IHasTranslationTemplates.
Method has_current_translation_templates See IHasTranslationTemplates.
Method has_obsolete_translation_templates See IHasTranslationTemplates.
Method has_sharing_translation_templates See IHasTranslationTemplates.
Method getCurrentTranslationFiles See IHasTranslationTemplates.
Method has_translation_files See IHasTranslationTemplates.
Method getTranslationTemplates See IHasTranslationTemplates.
Method getTranslationTemplateByName See IHasTranslationTemplates.
Method getTranslationTemplateFormats See IHasTranslationTemplates.
Method _orderTemplates Apply the conventional ordering to a result set of templates.

Inherited from HasBranchesMixin:

Method getBranches See IHasBranches.

Inherited from HasMergeProposalsMixin:

Method getMergeProposals See IHasMergeProposals.

Inherited from HasDriversMixin:

Method personHasDriverRights See IHasDrivers.
def __init__(self, sourcepackagename, distroseries):
Undocumented
@classmethod
def new(cls, sourcepackagename, distroseries):
See ISourcePackageFactory.
def __repr__(self):
Undocumented
def _getPublishingHistory(self, version=None, include_status=None, exclude_status=None, order_by=None):
Build a query and return a list of SourcePackagePublishingHistory.

This is mainly a helper function for this class so that code is not duplicated. include_status and exclude_status must be a sequence.

def _getFirstPublishingHistory(self, version=None, include_status=None, exclude_status=None, order_by=None):
As _getPublishingHistory, but just returns the first item.
@property
def currentrelease(self):
Undocumented
@property
def path(self):
See ISourcePackage.
@property
def display_name(self):
Undocumented
@property
def bugtargetdisplayname(self):
See IBugTarget.
@property
def bugtargetname(self):
See IBugTarget.
@property
def bugtarget_parent(self):
See ISeriesBugTarget.
@property
def title(self):
See ISourcePackage.
@property
def summary(self):
See ISourcePackage.
@property
def distribution(self):
Undocumented
@property
def format(self):
Undocumented
@property
def releases(self):
See ISourcePackage.
@property
def distinctreleases(self):
Return all distinct SourcePackageReleases for this sourcepackage.

The results are ordered by descending version.

@property
def name(self):
Undocumented
@property
def productseries(self):
Undocumented
@property
def direct_packaging(self):
See ISourcePackage.
@property
def packaging(self):
See ISourcePackage
@property
def published_by_pocket(self):
See ISourcePackage.
@property
def development_version(self):
See ISourcePackage.
@property
def distribution_sourcepackage(self):
See ISourcePackage.
@property
def bug_reporting_guidelines(self):
See IBugTarget.
@property
def bug_reported_acknowledgement(self):
See IBugTarget.
@property
def enable_bugfiling_duplicate_search(self):
See IBugTarget.
def _customizeSearchParams(self, search_params):
Customize search_params for this source package.
def _getOfficialTagClause(self):
Undocumented
@property
def official_bug_tags(self):
See IHasBugs.
def getUsedBugTagsWithOpenCounts(self, user, tag_limit=0, include_tags=None):
See IBugTarget.
@property
def drivers(self):
See IHasDrivers.
@property
def owner(self):
See IHasOwner.
@property
def pillar(self):
See IBugTarget.
@property
def series(self):
See ISeriesBugTarget.
def getBugSummaryContextWhereClause(self):
See BugTargetBase.
def setPackaging(self, productseries, owner):
See ISourcePackage.
def setPackagingReturnSharingDetailPermissions(self, productseries, owner):
See ISourcePackage.
def getSharingDetailPermissions(self):
Undocumented
def deletePackaging(self):
See ISourcePackage.
def __hash__(self):
See ISourcePackage.
def __eq__(self, other):
See ISourcePackage.
def __ne__(self, other):
See ISourcePackage.
def getBuildRecords(self, build_state=None, name=None, pocket=None, arch_tag=None, user=None, binary_only=True):
See IHasBuildRecords
@property
def latest_published_component(self):
See ISourcePackage.
@property
def latest_published_component_name(self):
See ISourcePackage.
def get_default_archive(self, component=None):
See ISourcePackage.
def getTemplatesCollection(self):
See IHasTranslationTemplates.
def getSharingPartner(self):
See IHasTranslationTemplates.
def getBranch(self, pocket):
See ISourcePackage.
def setBranch(self, pocket, branch, registrant):
See ISourcePackage.
@property
def linked_branches(self):
See ISourcePackage.
def getSuiteSourcePackage(self, pocket):
See ISourcePackage.
def getPocketPath(self, pocket):
See ISourcePackage.
def getLatestTranslationsUploads(self):
See ISourcePackage.
def linkedBranches(self):
See ISourcePackage.
def getBugTaskWeightFunction(self):
Provide a weight function to determine optimal bug task.

We look for the source package task, followed by the distro source package, then the distroseries task, and lastly the distro task.

API Documentation for Launchpad, generated by pydoctor at 2019-08-20 00:00:04.