l.r.m.d.DistributionSourcePackage(BugTargetBase, SourcePackageQuestionTargetMixin, StructuralSubscriptionTargetMixin, HasBranchesMixin, HasCodeImportsMixin, HasCustomLanguageCodesMixin, HasMergeProposalsMixin, HasDriversMixin) : class documentation

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

This is a "Magic Distribution Source Package". It is not an SQLObject, but instead it represents a source package with a particular name in a particular distribution. You can then ask it all sorts of things about the releases that are published under its name, the latest or current release, etc.
Method __init__ Undocumented
Method name See IDistributionSourcePackage.
Method display_name See IDistributionSourcePackage.
Method bugtargetdisplayname See IBugTarget.
Method bugtargetname See IBugTarget.
Method title See IDistributionSourcePackage.
Method summary See IDistributionSourcePackage.
Method development_version See IDistributionSourcePackage.
Method is_official See DistributionSourcePackage.
Method drivers See IHasDrivers.
Method delete See DistributionSourcePackage.
Method latest_overall_publication See IDistributionSourcePackage.
Method getVersion See IDistributionSourcePackage.
Method currentrelease See IDistributionSourcePackage.
Method get_distroseries_packages See IDistributionSourcePackage.
Method findRelatedArchives See IDistributionSourcePackage.
Method publishing_history See IDistributionSourcePackage.
Method binary_names See IDistributionSourcePackage.
Method upstream_product Undocumented
Method current_publishing_records See IDistributionSourcePackage.
Method getReleasesAndPublishingHistory See IDistributionSourcePackage.
Method releases See IDistributionSourcePackage.
Method __eq__ See IDistributionSourcePackage.
Method __hash__ Return the combined hash of distribution and package name.
Method __ne__ See IDistributionSourcePackage.
Method pillar See IBugTarget.
Method getBugSummaryContextWhereClause See BugTargetBase.
Method official_bug_tags See IHasBugs.
Method composeCustomLanguageCodeMatch See HasCustomLanguageCodesMixin.
Method createCustomLanguageCode See IHasCustomLanguageCodes.
Class Method ensure Create DistributionSourcePackage record, if necessary.
Method _self_in_database Return the equivalent database-backed record of self.
Method _getPublishingHistoryQuery Undocumented
Method _customizeSearchParams Customize search_params for this distribution source package.
Method _getOfficialTagClause Undocumented
Class Method _get Undocumented
Class Method _new Undocumented

Inherited from BugTargetBase:

Method getUsedBugTagsWithOpenCounts See IBugTarget.
Method createBug See IBugTarget.

Inherited from HasBugsBase (via BugTargetBase):

Method searchTasks See IHasBugs.
Method getBugTaskWeightFunction Default weight function is the simple one.

Inherited from SourcePackageQuestionTargetMixin:

Method getTargetTypes See QuestionTargetMixin.
Method questionIsForTarget See QuestionTargetMixin.
Method searchQuestions See IQuestionCollection.
Method getAnswerContactsForLanguage See IQuestionTarget.
Method getAnswerContactRecipients See IQuestionTarget.
Method answer_contacts See IQuestionTarget.
Method answer_contacts_with_languages Answer contacts with their languages pre-filled.
Method owner Undocumented
Method _store Undocumented

Inherited from QuestionTargetMixin (via SourcePackageQuestionTargetMixin):

Method newQuestion See IQuestionTarget.
Method createQuestionFromBug See IQuestionTarget.
Method getQuestion See IQuestionTarget.
Method findSimilarQuestions See IQuestionTarget.
Method getQuestionLanguages See IQuestionTarget.
Method direct_answer_contacts See IQuestionTarget.
Method direct_answer_contacts_with_languages Direct answer contacts with their languages pre-filled.
Method canUserAlterAnswerContact See IQuestionTarget.
Method addAnswerContact See IQuestionTarget.
Method removeAnswerContact See IQuestionTarget.
Method getSupportedLanguages See IQuestionTarget.
Method _getConditionsToQueryAnswerContacts The SQL conditions to query this target's answer contacts.
Method _selectPersonFromAnswerContacts Return the Persons or Teams who are AnswerContacts.

Inherited from StructuralSubscriptionTargetMixin:

Method parent_subscription_target See IStructuralSubscriptionTarget.
Method target_type_display See IStructuralSubscriptionTarget.
Method userCanAlterSubscription See IStructuralSubscriptionTarget.
Method addSubscription See IStructuralSubscriptionTarget.
Method userCanAlterBugSubscription See IStructuralSubscriptionTarget.
Method addBugSubscription See IStructuralSubscriptionTarget.
Method addBugSubscriptionFilter See IStructuralSubscriptionTarget.
Method removeBugSubscription See IStructuralSubscriptionTarget.
Method getSubscription See IStructuralSubscriptionTarget.
Method getSubscriptions See IStructuralSubscriptionTarget.
Method bug_subscriptions See IStructuralSubscriptionTarget.
Method userHasBugSubscriptions See IStructuralSubscriptionTarget.
Method __helper A IStructuralSubscriptionTargetHelper for this object.
Method _target_args Target Arguments.

Inherited from HasBranchesMixin:

Method getBranches See IHasBranches.

Inherited from HasCodeImportsMixin:

Method newCodeImport See IHasCodeImports.

Inherited from HasCustomLanguageCodesMixin:

Method has_custom_language_codes See IHasCustomLanguageCodes.
Method custom_language_codes See IHasCustomLanguageCodes.
Method getCustomLanguageCode See IHasCustomLanguageCodes.
Method removeCustomLanguageCode See IHasCustomLanguageCodes.
Method _queryCustomLanguageCodes Query CustomLanguageCodes belonging to self.

Inherited from HasMergeProposalsMixin:

Method getMergeProposals See IHasMergeProposals.

Inherited from HasDriversMixin:

Method personHasDriverRights See IHasDrivers.
def __init__(self, distribution, sourcepackagename):
Undocumented
@property
def name(self):
See IDistributionSourcePackage.
@property
def display_name(self):
See IDistributionSourcePackage.
@property
def bugtargetdisplayname(self):
See IBugTarget.
@property
def bugtargetname(self):
See IBugTarget.
@property
def title(self):
See IDistributionSourcePackage.
@property
def summary(self):
See IDistributionSourcePackage.
@property
def development_version(self):
See IDistributionSourcePackage.
@property
def _self_in_database(self):
Return the equivalent database-backed record of self.
@property
def is_official(self):
See DistributionSourcePackage.
@property
def drivers(self):
See IHasDrivers.
def delete(self):
See DistributionSourcePackage.
@property
def latest_overall_publication(self):
See IDistributionSourcePackage.
def getVersion(self, version):
See IDistributionSourcePackage.
@property
def currentrelease(self):
See IDistributionSourcePackage.
def get_distroseries_packages(self, active_only=True):
See IDistributionSourcePackage.
def findRelatedArchives(self, exclude_archive=None, archive_purpose=ArchivePurpose.PPA, required_karma=0):
See IDistributionSourcePackage.
@property
def publishing_history(self):
See IDistributionSourcePackage.
@cachedproperty
def binary_names(self):
See IDistributionSourcePackage.
@property
def upstream_product(self):
Undocumented
@property
def current_publishing_records(self):
See IDistributionSourcePackage.
def _getPublishingHistoryQuery(self, status=None):
Undocumented
def getReleasesAndPublishingHistory(self):
See IDistributionSourcePackage.
@property
def releases(self):
See IDistributionSourcePackage.
def __eq__(self, other):
See IDistributionSourcePackage.
def __hash__(self):
Return the combined hash of distribution and package name.
def __ne__(self, other):
See IDistributionSourcePackage.
@property
def pillar(self):
See IBugTarget.
def getBugSummaryContextWhereClause(self):
See BugTargetBase.
def _customizeSearchParams(self, search_params):
Customize search_params for this distribution source package.
def _getOfficialTagClause(self):
Undocumented
@property
def official_bug_tags(self):
See IHasBugs.
def composeCustomLanguageCodeMatch(self):
See HasCustomLanguageCodesMixin.
def createCustomLanguageCode(self, language_code, language):
See IHasCustomLanguageCodes.
@classmethod
def _get(cls, distribution, sourcepackagename):
Undocumented
@classmethod
def _new(cls, distribution, sourcepackagename, is_upstream_link_allowed=False):
Undocumented
@classmethod
def ensure(cls, spph=None, sourcepackage=None):
Create DistributionSourcePackage record, if necessary.

Only create a record for primary archives (i.e. not for PPAs) or for official package branches. Requires either a SourcePackage or a SourcePackagePublishingHistory.

ParametersspphA SourcePackagePublishingHistory to create a DSP to represent an official uploaded/published package.
sourcepackageA SourcePackage to create a DSP to represent an official package branch.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.