l.r.i.w.IDistribution(IDistributionEditRestricted, IDistributionPublic, IHasBugSupervisor, IFAQTarget, IQuestionTarget, IStructuralSubscriptionTarget) : interface documentation

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

An operating system distribution.

Launchpadlib example: retrieving the current version of a package in a particular distroseries.

ubuntu = launchpad.distributions["ubuntu"]
archive = ubuntu.main_archive
series = ubuntu.current_series
print archive.getPublishedSources(exact_match=True,
    source_name="apport",
    distro_series=series)[0].source_package_version

Inherited from IOfficialBugTagTargetRestricted (via IDistributionEditRestricted):

Method addOfficialBugTag Add tag to the official bug tags of this target.
Method removeOfficialBugTag Remove tag from the official bug tags of this target.

Inherited from IDistributionPublic:

Attribute id The distro's unique number.
Attribute displayname Display name (deprecated)
Attribute drivers Presents the distro driver as a list for consistency with IProduct.drivers where the list might include a project driver.
Attribute disabled_mirrors All disabled and official mirrors of this Distribution.
Attribute unofficial_mirrors All unofficial mirrors of this Distribution.
Attribute pending_review_mirrors All mirrors of this Distribution that haven't been reviewed yet.
List architectures Undocumented
Attribute uploaders ArchivePermission records for uploaders with rights to upload to this distribution.
TextLine package_derivatives_email The email address to send information about updates to packages that are derived from another distribution. The sequence {package_name} is replaced with the actual package name.
Choice translation_focus The release series that translators should focus on.
Choice language_pack_admin The distribution language pack administrator.
Attribute all_distro_archive_ids A list containing the IDs of all the non-PPA archives.
Bool has_published_binaries True if this distribution has binaries published on disk.
Bool has_published_sources True if this distribution has sources published.
Method getArchiveIDList Return a list of archive IDs suitable for sqlvalues() or quote().
Method __getitem__ Returns a DistroSeries that matches name, or raises and
Method __iter__ Iterate over the series for this distribution.
Method getArchive Return the distribution archive with the given name.
Method getDevelopmentSeries Return the DistroSeries which are marked as in development.
Method getNonObsoleteSeries Return the non-OBSOLETE DistroSeries in this distribution.
Method resolveSeriesAlias Resolve a series alias.
Method getSeries Return the series with the name or version given.
Method getBranchTips Return a list of branches which have new tips since a date.
Method getMirrorByName Return the mirror with the given name for this distribution or None
Method getCountryMirror Return the country DNS mirror for a country and content type.
Method newMirror Create a new DistributionMirror for this distribution.
Method getSourcePackage Return a DistributionSourcePackage with the given name for this
Method getSourcePackageRelease Returns an IDistributionSourcePackageRelease
Method getCurrentSourceReleases Get the current release of a list of source packages.
Method getDistroSeriesAndPocket Return a (distroseries,pocket) tuple which is the given textual
Method getSeriesByStatus Query context distribution for distroseries with a given status.
Method searchSourcePackages Search for source packages that correspond to the given text.
Method searchSourcePackageCaches Search for source packages that correspond to the given text.
Method searchBinaryPackages Search for binary packages in this distribution.
Method guessPublishedSourcePackageName Return the "published" SourcePackageName related to pkgname.
Method getAllPPAs Return all PPAs for this distribution.
Method searchPPAs Return all PPAs matching the given text in this distribution.
Method getPendingAcceptancePPAs Return only pending acceptance PPAs in this distribution.
Method getPendingPublicationPPAs Return all PPAs in this distribution that are pending publication.
Method getArchiveByComponent Return the archive most appropriate for the component name.
Method getAllowedBugInformationTypes Get the information types that a bug in this distribution can have.
Method getDefaultBugInformationType Get the default information type of a new bug in this distro.
Method userCanEdit Can the user edit this distribution?

Inherited from IBugTarget (via IDistributionPublic):

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 IDistributionPublic, 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 ICanGetMilestonesDirectly (via IDistributionPublic):

Method getMilestone Return a milestone with the given name for this object, or None.

Inherited from IHasAppointedDriver (via IDistributionPublic):

Choice driver Undocumented

Inherited from IHasBuildRecords (via IDistributionPublic):

Method getBuildRecords Return build records in the context it is implemented.

Inherited from IHasDrivers (via IDistributionPublic):

Method personHasDriverRights Does the given person have launchpad.Driver rights on this object?

Inherited from IHasMilestones (via IDistributionPublic):

Bool has_milestones Undocumented

Inherited from IHasOOPSReferences (via IDistributionPublic):

Method findReferencedOOPS Find OOPS reports between start_date and end_date.

Inherited from IHasOwner (via IDistributionPublic):

Attribute owner The object's owner, which is an IPerson.

Inherited from IHasSprints (via IDistributionPublic):

Attribute coming_sprints A list of up to 5 events currently on, or soon to be on, that are relevant to this context.
Attribute sprints All sprints relevant to this context.
Attribute past_sprints Sprints that occured in the past.

Inherited from IHasTranslationImports (via IDistributionPublic):

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 ITranslationPolicy (via IDistributionPublic):

Method getTranslationGroups List all applicable translation groups.
Method getTranslators Find the applicable `TranslationGroup`(s) and translators.
Method getEffectiveTranslationPermission Get the effective TranslationPermission.
Method invitesTranslationEdits Does this policy invite person to edit translations?
Method invitesTranslationSuggestions Does this policy invite person to enter suggestions?
Method allowsTranslationEdits Is person allowed to edit translations to language?
Method allowsTranslationSuggestions Is person allowed to enter suggestions for language?
Method sharesTranslationsWithOtherSide Should translations be shared across `TranslationSide`s?

Inherited from IKarmaContext (via IDistributionPublic):

Method getTopContributorsGroupedByCategory Return a dict mapping categories to the top contributors (and their
Method getTopContributors Return the people with the highest amount of Karma, and their

Inherited from ILaunchpadUsage (via IDistributionPublic):

Bool official_answers Undocumented
Bool official_blueprints Undocumented
Bool official_codehosting Undocumented
Bool official_malone Undocumented
Bool official_anything Undocumented
Bool enable_bug_expiration Undocumented

Inherited from IMakesAnnouncements (via IDistributionPublic):

Method announce Create a Announcement for this project.

Inherited from IHasAnnouncements (via IDistributionPublic, IMakesAnnouncements):

Method getAnnouncement Return the requested announcement.
Method getAnnouncements Return a list of announcements visible to this user.

Inherited from IHasOfficialBugTags (via IDistributionPublic, IOfficialBugTagTargetPublic):

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 IPillar (via IDistributionPublic):

Attribute pillar_category The category title applicable to the pillar

Inherited from IServiceUsage (via IDistributionPublic):

Choice answers_usage Where does this pillar have an Answers forum?
Choice blueprints_usage Where does this pillar host blueprints?
Choice codehosting_usage Where does this pillar host code?
Choice bug_tracking_usage Where does this pillar track bugs?
Bool uses_launchpad Undocumented

Inherited from ISpecificationTarget (via IDistributionPublic):

Method getSpecification Returns the specification with the given name, for this target,
Method getAllowedSpecificationInformationTypes Get the InformationTypes for this target's specifications.
Method getDefaultSpecificationInformationType Get the default InformationType for the target's specifications.

Inherited from IHasSpecifications (via IDistributionPublic, ISpecificationTarget):

Method specifications Specifications for this target.
Method valid_specifications Valid specifications for this target.

Inherited from IFAQTarget:

Method newFAQ Create a new FAQ hosted in this target.
Method findSimilarFAQs Return FAQs contained in this target similar to summary.

Inherited from IFAQCollection (via IFAQTarget):

Method getFAQ Return the IFAQ in this collection with the requested id.
Method searchFAQs Return the FAQs in the collection that matches the search criteria.

Inherited from IQuestionTargetPublic (via IQuestionTarget):

Method getQuestion Return the question by its id, if it is applicable to this target.
Method findSimilarQuestions Return questions similar to phrase.
Method getAnswerContactsForLanguage Return the list of Persons that provide support for a language.
Method getAnswerContactRecipients Return an INotificationRecipientSet of answer contacts.
Method getSupportedLanguages Return a list of languages spoken by at the answer contacts.
List answer_contacts Persons that are willing to provide support for this target. They receive email notifications about each new question as well as for changes to any questions related to this target.
List direct_answer_contacts IPersons that registered as answer contacts explicitely on this target. (answer_contacts may include answer contacts inherited from other context.)
Method canUserAlterAnswerContact Can the user add or remove the answer contact.

Inherited from ISearchableByQuestionOwner (via IQuestionTarget, IQuestionTargetPublic):

Method searchQuestions Return the questions from the collection matching search criteria.

Inherited from IQuestionCollection (via IQuestionTarget, IQuestionTargetPublic, ISearchableByQuestionOwner):

Method getQuestionLanguages Return the set of ILanguage used by all the questions in the

Inherited from IQuestionTargetView (via IQuestionTarget):

Method newQuestion Create a new question.
Method createQuestionFromBug Create and return a Question from a Bug.
Method addAnswerContact Add a new answer contact.
Method removeAnswerContact Remove an answer contact.

Inherited from IStructuralSubscriptionTargetRead (via IStructuralSubscriptionTarget):

Method getSubscriptions Return all the subscriptions with the specified levels.
Attribute parent_subscription_target The target's parent, or None if one doesn't exist.
Attribute bug_subscriptions All subscriptions to bugs at the METADATA level or higher.
Method userCanAlterSubscription Check if a user can change a subscription for a person.
Method userCanAlterBugSubscription Check if a user can change a bug subscription for a person.
Method getSubscription Return the subscription for person, if it exists.
Attribute target_type_display The type of the target, for display.
Method userHasBugSubscriptions Is user subscribed, directly or via a team, to bug mail?

Inherited from IStructuralSubscriptionTargetWrite (via IStructuralSubscriptionTarget):

Method addSubscription Add a subscription for this structure.
Method addBugSubscription Add a bug subscription for this structure.
Method addBugSubscriptionFilter Add a bug subscription filter for this structure.
Method removeBugSubscription Remove a subscription to bugs from this structure.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.