l.r.m.d.Distribution(SQLBase, BugTargetBase, MakesAnnouncements, HasSpecificationsMixin, HasSprintsMixin, HasAliasMixin, HasTranslationImportsMixin, KarmaContextMixin, OfficialBugTagTargetMixin, QuestionTargetMixin, StructuralSubscriptionTargetMixin, HasMilestonesMixin, HasDriversMixin, TranslationPolicyMixin) : class documentation

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

A distribution of an operating system, e.g. Debian GNU/Linux.
Method __repr__ Undocumented
Method displayname Undocumented
Method title Undocumented
Method pillar See IBugTarget.
Method pillar_category See IPillar.
Method branch_sharing_policy See `IHasSharingPolicies.
Method bug_sharing_policy See `IHasSharingPolicies.
Method specification_sharing_policy See `IHasSharingPolicies.
Method uploaders See IDistribution.
Method official_codehosting Undocumented
Method official_anything Undocumented
Method codehosting_usage Undocumented
Method bug_tracking_usage Undocumented
Method uses_launchpad Does this distribution actually use Launchpad?
Method main_archive See IDistribution.
Method all_distro_archives See IDistribution.
Method all_distro_archive_ids See IDistribution.
Method getArchiveIDList See IDistribution.
Method archive_mirrors See IDistribution.
Method archive_mirrors_by_country See IDistribution.
Method cdimage_mirrors See IDistribution.
Method cdimage_mirrors_by_country See IDistribution.
Method disabled_mirrors See IDistribution.
Method unofficial_mirrors See IDistribution.
Method pending_review_mirrors See IDistribution.
Method drivers See IDistribution.
Method series See IDistribution.
Method derivatives See IDistribution.
Method architectures See IDistribution.
Method bugtargetdisplayname See IBugTarget.
Method bugtargetname See IBugTarget.
Method getBugSummaryContextWhereClause See BugTargetBase.
Method getBranchTips See IDistribution.
Method getMirrorByName See IDistribution.
Method getCountryMirror See IDistribution.
Method newMirror See IDistribution.
Method currentseries See IDistribution.
Method __getitem__ Undocumented
Method __iter__ Undocumented
Method getArchive See IDistribution.
Method resolveSeriesAlias See IDistribution.
Method getSeries See IDistribution.
Method getDevelopmentSeries See IDistribution.
Method getNonObsoleteSeries See IDistribution.
Method getMilestone See IDistribution.
Method getSourcePackage See IDistribution.
Method getSourcePackageRelease See IDistribution.
Method getCurrentSourceReleases See IDistribution.
Method specifications See IHasSpecifications.
Method getSpecification See ISpecificationTarget.
Method getAllowedSpecificationInformationTypes See ISpecificationTarget.
Method getDefaultSpecificationInformationType See ISpecificationTarget.
Method searchQuestions See IQuestionCollection.
Method getTargetTypes See QuestionTargetMixin.
Method questionIsForTarget See QuestionTargetMixin.
Method newFAQ See IFAQTarget.
Method findReferencedOOPS See IHasOOPSReferences.
Method findSimilarFAQs See IFAQTarget.
Method getFAQ See IFAQCollection.
Method searchFAQs See IFAQCollection.
Method getDistroSeriesAndPocket See IDistribution.
Method getSeriesByStatus See IDistribution.
Method getBuildRecords See IHasBuildRecords
Method searchSourcePackageCaches See IDistribution.
Method searchSourcePackages See IDistribution.
Method searchBinaryPackages See IDistribution.
Method guessPublishedSourcePackageName See IDistribution
Method getAllPPAs See IDistribution
Method searchPPAs See IDistribution.
Method getPendingAcceptancePPAs See IDistribution.
Method getPendingPublicationPPAs See IDistribution.
Method getArchiveByComponent See IDistribution.
Method getAllowedBugInformationTypes See IDistribution.
Method getDefaultBugInformationType See IDistribution.
Method userCanEdit See IDistribution.
Method newSeries See IDistribution.
Method has_published_binaries See IDistribution.
Method sharesTranslationsWithOtherSide See ITranslationPolicy.
Method getBugTaskWeightFunction Provide a weight function to determine optimal bug task.
Method has_published_sources Undocumented
Method _get_answers_usage Undocumented
Method _set_answers_usage Undocumented
Method _get_blueprints_usage Undocumented
Method _set_blueprints_usage Undocumented
Method _getMilestoneCondition See HasMilestonesMixin.
Method _getMirrors Builds the query to get the mirror data for various purposes.
Method _sort_key Return something that can be used to sort distributions,
Method _customizeSearchParams Customize search_params for this distribution.

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented

Inherited from BugTargetBase:

Method getUsedBugTagsWithOpenCounts See IBugTarget.
Method createBug See IBugTarget.

Inherited from HasBugsBase (via BugTargetBase):

Method searchTasks See IHasBugs.

Inherited from MakesAnnouncements:

Method announce See IHasAnnouncements.

Inherited from HasAnnouncements (via MakesAnnouncements):

Method getAnnouncement Undocumented
Method getAnnouncements See IHasAnnouncements.

Inherited from HasSpecificationsMixin:

Method visible_specifications See IHasSpecifications.
Method valid_specifications See IHasSpecifications.
Method api_valid_specifications Undocumented
Method specificationCount See IHasSpecifications.
Method _specification_sort Return the storm sort order for 'specifications'.

Inherited from HasSprintsMixin:

Method getSprints Undocumented
Method sprints See IHasSprints.
Method getComingSprings Undocumented
Method coming_sprints See IHasSprints.
Method past_sprints See IHasSprints.
Method _getBaseQueryAndClauseTablesForQueryingSprints Return the base SQL query and the clauseTables to be used when

Inherited from HasAliasMixin:

Method aliases See IHasAlias.
Method setAliases See IHasAlias.

Inherited from HasTranslationImportsMixin:

Method getFirstEntryToImport See IHasTranslationImports.
Method getTranslationImportQueueEntries See IHasTranslationImports.

Inherited from KarmaContextMixin:

Method getTopContributorsGroupedByCategory See IKarmaContext.
Method getTopContributors See IKarmaContext.

Inherited from OfficialBugTagTargetMixin:

Method addOfficialBugTag See IOfficialBugTagTarget.
Method removeOfficialBugTag See IOfficialBugTagTarget.
Method _getOfficialTagClause Undocumented
Method _getOfficialTags Get the official bug tags as a sorted list of strings.
Method _setOfficialTags Set the official bug tags from a list of strings.
Method _getTag Return the OfficialBugTag record for the given tag, if it exists.

Inherited from QuestionTargetMixin:

Method newQuestion See IQuestionTarget.
Method createQuestionFromBug See IQuestionTarget.
Method getQuestion See IQuestionTarget.
Method findSimilarQuestions See IQuestionTarget.
Method getQuestionLanguages See IQuestionTarget.
Method answer_contacts See IQuestionTarget.
Method answer_contacts_with_languages Answer contacts with their languages pre-filled.
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 getAnswerContactsForLanguage See IQuestionTarget.
Method getAnswerContactRecipients See IQuestionTarget.
Method removeAnswerContact See IQuestionTarget.
Method getSupportedLanguages See IQuestionTarget.
Method _store Undocumented
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 HasMilestonesMixin:

Method has_milestones Undocumented
Method all_milestones See IHasMilestones.
Method _get_milestones See IHasMilestones.

Inherited from HasDriversMixin:

Method personHasDriverRights See IHasDrivers.

Inherited from TranslationPolicyMixin:

Method getInheritedTranslationPolicy Get any ITranslationPolicy objects that this one inherits.
Method isTranslationsOwner Is person one of the owners of these translations?
Method getTranslationGroups See ITranslationPolicy.
Method getTranslators See ITranslationPolicy.
Method getEffectiveTranslationPermission See ITranslationPolicy.
Method invitesTranslationEdits See ITranslationPolicy.
Method invitesTranslationSuggestions See ITranslationPolicy.
Method allowsTranslationEdits See ITranslationPolicy.
Method allowsTranslationSuggestions See ITranslationPolicy.
Method _hasSpecialTranslationPrivileges Does this person have special translation editing rights here?
Method _canTranslate Is person in a position to translate?
Method _getTranslator Retrieve one (TranslationGroup, Translator, Person) tuple.
def __repr__(self):
Undocumented
@property
def displayname(self):
Undocumented
@property
def title(self):
Undocumented
@property
def pillar(self):
See IBugTarget.
@property
def pillar_category(self):
See IPillar.
@property
def branch_sharing_policy(self):
See `IHasSharingPolicies.
@property
def bug_sharing_policy(self):
See `IHasSharingPolicies.
@property
def specification_sharing_policy(self):
See `IHasSharingPolicies.
@property
def uploaders(self):
See IDistribution.
@property
def official_codehosting(self):
Undocumented
@property
def official_anything(self):
Undocumented
def _get_answers_usage(self):
Undocumented
def _set_answers_usage(self, val):
Undocumented
def _get_blueprints_usage(self):
Undocumented
def _set_blueprints_usage(self, val):
Undocumented
@property
def codehosting_usage(self):
Undocumented
@property
def bug_tracking_usage(self):
Undocumented
@property
def uses_launchpad(self):
Does this distribution actually use Launchpad?
@cachedproperty
def main_archive(self):
See IDistribution.
@cachedproperty
def all_distro_archives(self):
See IDistribution.
@cachedproperty
def all_distro_archive_ids(self):
See IDistribution.
def _getMilestoneCondition(self):
See HasMilestonesMixin.
def getArchiveIDList(self, archive=None):
See IDistribution.
def _getMirrors(self, content=None, enabled=True, status=MirrorStatus.OFFICIAL, by_country=False, needs_fresh=False, needs_cdimage_series=False):
Builds the query to get the mirror data for various purposes.
@property
def archive_mirrors(self):
See IDistribution.
@property
def archive_mirrors_by_country(self):
See IDistribution.
@property
def cdimage_mirrors(self, by_country=False):
See IDistribution.
@property
def cdimage_mirrors_by_country(self):
See IDistribution.
@property
def disabled_mirrors(self):
See IDistribution.
@property
def unofficial_mirrors(self):
See IDistribution.
@property
def pending_review_mirrors(self):
See IDistribution.
@property
def drivers(self):
See IDistribution.
@property
def _sort_key(self):
Return something that can be used to sort distributions, putting Ubuntu and its major derivatives first.

This is used to ensure that the list of distributions displayed in Soyuz generally puts Ubuntu at the top.

@cachedproperty
def series(self):
See IDistribution.
@cachedproperty
def derivatives(self):
See IDistribution.
@property
def architectures(self):
See IDistribution.
@property
def bugtargetdisplayname(self):
See IBugTarget.
@property
def bugtargetname(self):
See IBugTarget.
def getBugSummaryContextWhereClause(self):
See BugTargetBase.
def _customizeSearchParams(self, search_params):
Customize search_params for this distribution.
def getBranchTips(self, user=None, since=None):
See IDistribution.
def getMirrorByName(self, name):
See IDistribution.
def getCountryMirror(self, country, mirror_type):
See IDistribution.
def newMirror(self, owner, speed, country, content, display_name=None, description=None, http_base_url=None, ftp_base_url=None, rsync_base_url=None, official_candidate=False, enabled=False, whiteboard=None):
See IDistribution.
@property
def currentseries(self):
See IDistribution.
def __getitem__(self, name):
Undocumented
def __iter__(self):
Undocumented
def getArchive(self, name):
See IDistribution.
def resolveSeriesAlias(self, name):
See IDistribution.
def getSeries(self, name_or_version, follow_aliases=False):
See IDistribution.
def getDevelopmentSeries(self):
See IDistribution.
def getNonObsoleteSeries(self):
See IDistribution.
def getMilestone(self, name):
See IDistribution.
def getSourcePackage(self, name):
See IDistribution.
def getSourcePackageRelease(self, sourcepackagerelease):
See IDistribution.
def getCurrentSourceReleases(self, source_package_names):
See IDistribution.
def specifications(self, user, sort=None, quantity=None, filter=None, need_people=True, need_branches=True, need_workitems=False):

See IHasSpecifications.

In the case of distributions, there are two kinds of filtering, based on:

  • completeness: we want to show INCOMPLETE if nothing is said
  • informationalness: we will show ANY if nothing is said
def getSpecification(self, name):
See ISpecificationTarget.
def getAllowedSpecificationInformationTypes(self):
See ISpecificationTarget.
def getDefaultSpecificationInformationType(self):
See ISpecificationTarget.
def searchQuestions(self, search_text=None, status=QUESTION_STATUS_DEFAULT_SEARCH, language=None, sort=None, owner=None, needs_attention_from=None, unsupported=False):
See IQuestionCollection.
def getTargetTypes(self):
See QuestionTargetMixin.

Defines distribution as self and sourcepackagename as None.

def questionIsForTarget(self, question):
See QuestionTargetMixin.

Return True when the Question's distribution is self.

def newFAQ(self, owner, title, content, keywords=None, date_created=None):
See IFAQTarget.
def findReferencedOOPS(self, start_date, end_date):
See IHasOOPSReferences.
def findSimilarFAQs(self, summary):
See IFAQTarget.
def getFAQ(self, id):
See IFAQCollection.
def searchFAQs(self, search_text=None, owner=None, sort=None):
See IFAQCollection.
def getDistroSeriesAndPocket(self, distroseries_name, follow_aliases=False):
See IDistribution.
def getSeriesByStatus(self, status):
See IDistribution.
def getBuildRecords(self, build_state=None, name=None, pocket=None, arch_tag=None, user=None, binary_only=True):
See IHasBuildRecords
def searchSourcePackageCaches(self, text, has_packaging=None, publishing_distroseries=None):
See IDistribution.
def searchSourcePackages(self, text, has_packaging=None, publishing_distroseries=None):
See IDistribution.
def searchBinaryPackages(self, package_name, exact_match=False):
See IDistribution.
def guessPublishedSourcePackageName(self, pkgname):
See IDistribution
def getAllPPAs(self):
See IDistribution
def searchPPAs(self, text=None, show_inactive=False, user=None):
See IDistribution.
def getPendingAcceptancePPAs(self):
See IDistribution.
def getPendingPublicationPPAs(self):
See IDistribution.
def getArchiveByComponent(self, component_name):
See IDistribution.
def getAllowedBugInformationTypes(self):
See IDistribution.
def getDefaultBugInformationType(self):
See IDistribution.
def userCanEdit(self, user):
See IDistribution.
def newSeries(self, name, display_name, title, summary, description, version, previous_series, registrant):
See IDistribution.
@property
def has_published_binaries(self):
See IDistribution.
def sharesTranslationsWithOtherSide(self, person, language, sourcepackage=None, purportedly_upstream=False):
See ITranslationPolicy.
def getBugTaskWeightFunction(self):
Provide a weight function to determine optimal bug task.

Full weight is given to tasks for this distribution.

Given that there must be a distribution task for a series of that distribution to have a task, we give no more weighting to a distroseries task than any other.

@property
def has_published_sources(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-10-22 00:00:06.