Part of lp.registry.interfaces.distribution View In Hierarchy
Known subclasses: lp.registry.interfaces.webservice.IDistribution
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:
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 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:
Method | getMilestone | Return a milestone with the given name for this object, or None. |
Inherited from IHasAppointedDriver:
Choice | driver | Undocumented |
Inherited from IHasBuildRecords:
Method | getBuildRecords | Return build records in the context it is implemented. |
Inherited from IHasDrivers:
Method | personHasDriverRights | Does the given person have launchpad.Driver rights on this object? |
Inherited from IHasMilestones:
Bool | has_milestones | Undocumented |
Inherited from IHasOOPSReferences:
Method | findReferencedOOPS | Find OOPS reports between start_date and end_date. |
Inherited from IHasOwner:
Attribute | owner | The object's owner, which is an IPerson. |
Inherited from IHasSprints:
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:
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:
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:
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:
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:
Method | announce | Create a Announcement for this project. |
Inherited from IHasAnnouncements (via IMakesAnnouncements):
Method | getAnnouncement | Return the requested announcement. |
Method | getAnnouncements | Return a list of announcements visible to this user. |
Inherited from IHasOfficialBugTags (via 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:
Attribute | pillar_category | The category title applicable to the pillar |
Inherited from IServiceUsage:
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:
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 ISpecificationTarget):
Method | specifications | Specifications for this target. |
Method | valid_specifications | Valid specifications for this target. |
If the archive param is supplied, just its ID will be returned in a list of one item. If it is not supplied, return a list of all the IDs for all the archives for the distribution.
Only distribution archives are considered -- PPAs will not be found.
Parameters | name | The name of the archive, e.g. 'partner' |
Parameters | name | The name to resolve. |
Raises | NoSuchDistroSeries | If there is no match. |
Parameters | name_or_version | The IDistroSeries.name or
IDistroSeries.version . |
Each branch information is a tuple of (branch_unique_name, tip_revision, (official_series*)).
So for each branch in the distribution, you'll get the branch unique name, the revision id of tip, and if the branch is official for some series, the list of series name.
Parameters | user: If specified, shows the branches visible to that user. if not specified, only branches visible to the anonymous user are shown. | |
since | If specified, limits results to branches modified since that date and time. |
At least one of http_base_url or ftp_base_url must be provided in order to create a mirror.
Receives a sourcepackagerelease.
Parameters | source_package_names | a list of ISourcePackageName
instances. |
Returns | a dict where the key is a IDistributionSourcePackage
and the value is a IDistributionSourcePackageRelease . |
Parameters | status | Series status to look for |
Returns | list of IDistroSeries |
This method just decorates the result of searchSourcePackageCaches() to return DistributionSourcePackages.
Parameters | text | The text that will be matched. |
has_packaging | If True, it will filter out packages with no packaging (i.e. no link to the upstream project). False will do the reverse filtering, and None will do no filtering on this field. | |
publishing_distroseries | If it is not None, then it will filter out source packages that do not have a publishing history for the given distroseries. | |
Returns | A result set containing (DistributionSourcePackageCache, SourcePackageName, rank) tuples ordered by rank. |
The returned results will consist of source packages that match (a substring of) their binary package names.
Parameters | package_name | The binary package name to match. |
exact_match | If False, substring matches are done on the binary package names; if True only a full string match is returned. | |
Returns | A result set containing appropriate DistributionSourcePackage objects for the matching source. |
If pkgname corresponds to a source package that was published in any of the distribution series, that's the SourcePackageName that is returned.
If there is any official source package branch linked, then that source package name is returned.
Otherwise, try to find a published binary package name and then return the source package name from which it comes from.
Raises | NotFoundError | when pkgname doesn't correspond to either a published source or binary package name in this distribution. |
'text', when passed, will restrict results to Archives with matching description (using substring) or matching Archive.owner (using available person fti/ftq).
'show_inactive', when False, will restrict results to Archive with at least one source publication in PENDING or PUBLISHED status.
A PPA is said to be pending publication if it has publishing records in the pending state or if it had packages deleted from it.
Where different components may imply a different archive (e.g. partner), this method will return the archive for that component.
If the component_name supplied is unknown, None is returned.
Get the information types that a bug in this distribution can have. :return: A sequence of `InformationType`s.