l.s.m.a.Archive(SQLBase) : class documentation

Part of lp.soyuz.model.archive View In Hierarchy

No class docstring
Method private 0 Undocumented
Method private Undocumented
Method title See IArchive.
Method signing_key See IArchive.
Method getSigningKeyData See IArchive.
Method is_ppa See IArchive.
Method is_primary See IArchive.
Method is_partner See IArchive.
Method is_copy See IArchive.
Method is_main See IArchive.
Method is_active See IArchive.
Method can_be_published See IArchive.
Method reference Undocumented
Method series_with_sources See IArchive.
Method dependencies Undocumented
Method default_component See IArchive.
Method archive_url See IArchive.
Method getBuildRecords See IHasBuildRecords
Method api_getPublishedSources See IArchive.
Method getPublishedSources See IArchive.
Method getSourcesForDeletion See IArchive.
Method number_of_sources See IArchive.
Method sources_size See IArchive.
Method getAllPublishedBinaries See IArchive.
Method getPublishedOnDiskBinaries See IArchive.
Method number_of_binaries See IArchive.
Method binaries_size See IArchive.
Method estimated_size See IArchive.
Method allowUpdatesToReleasePocket See IArchive.
Method getComponentsForSeries See IArchive.
Method updateArchiveCache See IArchive.
Method findDepCandidates See IArchive.
Method getArchiveDependency See IArchive.
Method removeArchiveDependency See IArchive.
Method addArchiveDependency See IArchive.
Method getPermissions See IArchive.
Method getAllPermissions See IArchive.
Method getPermissionsForPerson See IArchive.
Method getUploadersForPackage See IArchive.
Method getUploadersForComponent See IArchive.
Method getUploadersForPocket See IArchive.
Method getQueueAdminsForComponent See IArchive.
Method getComponentsForQueueAdmin See IArchive.
Method getQueueAdminsForPocket See IArchive.
Method getPocketsForQueueAdmin See IArchive.
Method hasAnyPermission See IArchive.
Method getBuildCounters See IArchiveSet.
Method getBuildSummariesForSourceIds See IArchive.
Method checkArchivePermission See IArchive.
Method canUploadSuiteSourcePackage See IArchive.
Method canModifySuite See IArchive.
Method checkUploadToPocket See IArchive.
Method checkUpload See IArchive.
Method verifyUpload See IArchive.
Method canAdministerQueue See IArchive.
Method newPackageUploader See IArchive.
Method newPackagesetUploader See IArchive.
Method newComponentUploader See IArchive.
Method newPocketUploader Undocumented
Method newQueueAdmin See IArchive.
Method newPocketQueueAdmin See IArchive.
Method deletePackageUploader See IArchive.
Method deleteComponentUploader See IArchive.
Method deletePocketUploader See IArchive.
Method deleteQueueAdmin See IArchive.
Method deletePocketQueueAdmin See IArchive.
Method getUploadersForPackageset See IArchive.
Method deletePackagesetUploader See IArchive.
Method getComponentsForUploader See IArchive.
Method getPocketsForUploader See IArchive.
Method getPackagesetsForUploader See IArchive.
Method getPackagesetsForSourceUploader See IArchive.
Method getPackagesetsForSource See IArchive.
Method isSourceUploadAllowed See IArchive.
Method getFileByName See IArchive.
Method getSourceFileByName See IArchive.
Method getBinaryPackageRelease See IArchive.
Method getBinaryPackageReleaseByFileName Undocumented
Method requestPackageCopy See IArchive.
Method syncSources See IArchive.
Method syncSource See IArchive.
Method copyPackage See IArchive.
Method copyPackages See IArchive.
Method getAuthToken See IArchive.
Method newAuthToken See IArchive.
Method newNamedAuthToken See IArchive.
Method newNamedAuthTokens See IArchive.
Method getNamedAuthToken See IArchive.
Method getNamedAuthTokens See IArchive.
Method revokeNamedAuthToken See IArchive.
Method revokeNamedAuthTokens See IArchive.
Method newSubscription See IArchive.
Method num_pkgs_building See IArchive.
Method updatePackageDownloadCount See IArchive.
Method getPackageDownloadTotal See IArchive.
Method getPackageDownloadCount See IArchive.
Method enable See IArchive.
Method disable See IArchive.
Method delete See IArchive.
Method getFilesAndSha1s See IArchive.
Method enableRestrictedProcessor See IArchive.
Method available_processors See IArchive.
Method setProcessors See IArchive.
Method getPockets See IArchive.
Method getOverridePolicy See IArchive.
Method removeCopyNotification See IArchive.
Method markSuiteDirty See IArchive.
Method _validate_archive_name Only allow renaming of COPY archives.
Method _validate_archive_privacy Require private team owners to have private archives.
Method _init Provide the right interface for URL traversal.
Method _known_subscribers Undocumented
Method _getBinaryPublishingBaseClauses Base clauses for binary publishing queries.
Method _addArchiveDependency See IArchive.
Method _checkUpload See IArchive.
Method _authenticate Private helper method to check permissions.
Method _validateAndFindSource Undocumented
Method _collectLatestPublishedSources Private helper to collect the latest published sources for an
Method _text_to_series Undocumented
Method _text_to_pocket Undocumented
Method _copySources Private helper function to copy sources to this archive.
Method _setBuildQueueStatuses Update the pending BuildQueues' statuses for this archive.
Method _recalculateBuildVirtualization Update virtualized columns for this archive.
Method _getEnabledRestrictedProcessors Retrieve the restricted architectures this archive can build on.
Method _setEnabledRestrictedProcessors Set the restricted architectures this archive can build on.
Method _getProcessors Undocumented
Method _getExistingOverrideSequence Undocumented

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
Method __repr__ Undocumented
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented
def _validate_archive_name(self, attr, value):
Only allow renaming of COPY archives.

Also assert the name is valid when set via an unproxied object.

def _validate_archive_privacy(self, attr, value):
Require private team owners to have private archives.

If the owner of the archive is private, then the archive cannot be made public.

def _init(self, *args, **kw):
Provide the right interface for URL traversal.
@property
def private 0(self):
Undocumented
@private.setter
def private(self, private):
Undocumented
@property
def title(self):
See IArchive.
@cachedproperty
def signing_key(self):
See IArchive.
def getSigningKeyData(self):
See IArchive.
@property
def is_ppa(self):
See IArchive.
@property
def is_primary(self):
See IArchive.
@property
def is_partner(self):
See IArchive.
@property
def is_copy(self):
See IArchive.
@property
def is_main(self):
See IArchive.
@property
def is_active(self):
See IArchive.
@property
def can_be_published(self):
See IArchive.
@property
def reference(self):
Undocumented
@property
def series_with_sources(self):
See IArchive.
@property
def dependencies(self):
Undocumented
@cachedproperty
def default_component(self):
See IArchive.
@cachedproperty
def _known_subscribers(self):
Undocumented
@property
def archive_url(self):
See IArchive.
def getBuildRecords(self, build_state=None, name=None, pocket=None, arch_tag=None, user=None, binary_only=True):
See IHasBuildRecords
def api_getPublishedSources(self, name=None, version=None, status=None, distroseries=None, pocket=None, exact_match=False, created_since_date=None, order_by_date=False, component_name=None):
See IArchive.
def getPublishedSources(self, name=None, version=None, status=None, distroseries=None, pocket=None, exact_match=False, created_since_date=None, eager_load=False, component_name=None, order_by_date=False, include_removed=True):
See IArchive.
def getSourcesForDeletion(self, name=None, status=None, distroseries=None):
See IArchive.
@property
def number_of_sources(self):
See IArchive.
@property
def sources_size(self):
See IArchive.
def _getBinaryPublishingBaseClauses(self, name=None, version=None, status=None, distroarchseries=None, pocket=None, exact_match=False, created_since_date=None, ordered=True, order_by_date=False, include_removed=True, need_bpr=False):
Base clauses for binary publishing queries.

Returns a list of 'clauses' (to be joined in the callsite).

def getAllPublishedBinaries(self, name=None, version=None, status=None, distroarchseries=None, pocket=None, exact_match=False, created_since_date=None, ordered=True, order_by_date=False, include_removed=True, eager_load=False):
See IArchive.
def getPublishedOnDiskBinaries(self, name=None, version=None, status=None, distroarchseries=None, pocket=None, exact_match=False):
See IArchive.
@property
def number_of_binaries(self):
See IArchive.
@property
def binaries_size(self):
See IArchive.
@property
def estimated_size(self):
See IArchive.
def allowUpdatesToReleasePocket(self):
See IArchive.
def getComponentsForSeries(self, distroseries):
See IArchive.
def updateArchiveCache(self):
See IArchive.
def findDepCandidates(self, distro_arch_series, pocket, component, source_package_name, dep_name):
See IArchive.
def getArchiveDependency(self, dependency):
See IArchive.
def removeArchiveDependency(self, dependency):
See IArchive.
def addArchiveDependency(self, dependency, pocket, component=None):
See IArchive.
def _addArchiveDependency(self, dependency, pocket, component=None):
See IArchive.
def getPermissions(self, user, item, perm_type, distroseries=None):
See IArchive.
def getAllPermissions(self):
See IArchive.
def getPermissionsForPerson(self, person):
See IArchive.
def getUploadersForPackage(self, source_package_name):
See IArchive.
def getUploadersForComponent(self, component_name=None):
See IArchive.
def getUploadersForPocket(self, pocket):
See IArchive.
def getQueueAdminsForComponent(self, component_name):
See IArchive.
def getComponentsForQueueAdmin(self, person):
See IArchive.
def getQueueAdminsForPocket(self, pocket, distroseries=None):
See IArchive.
def getPocketsForQueueAdmin(self, person):
See IArchive.
def hasAnyPermission(self, person):
See IArchive.
def getBuildCounters(self, include_needsbuild=True):
See IArchiveSet.
def getBuildSummariesForSourceIds(self, source_ids):
See IArchive.
def checkArchivePermission(self, user, item=None):
See IArchive.
def canUploadSuiteSourcePackage(self, person, suitesourcepackage):
See IArchive.
def canModifySuite(self, distroseries, pocket):
See IArchive.
def checkUploadToPocket(self, distroseries, pocket, person=None):
See IArchive.
def _checkUpload(self, person, distroseries, sourcepackagename, component, pocket, strict_component=True):
See IArchive.
def checkUpload(self, person, distroseries, sourcepackagename, component, pocket, strict_component=True):
See IArchive.
def verifyUpload(self, person, sourcepackagename, component, distroseries, strict_component=True, pocket=None):
See IArchive.
def canAdministerQueue(self, user, components=None, pocket=None, distroseries=None):
See IArchive.
def _authenticate(self, user, item, permission, distroseries=None):
Private helper method to check permissions.
def newPackageUploader(self, person, source_package_name):
See IArchive.
def newPackagesetUploader(self, person, packageset, explicit=False):
See IArchive.
def newComponentUploader(self, person, component_name):
See IArchive.
def newPocketUploader(self, person, pocket):
Undocumented
def newQueueAdmin(self, person, component_name):
See IArchive.
def newPocketQueueAdmin(self, person, pocket, distroseries=None):
See IArchive.
def deletePackageUploader(self, person, source_package_name):
See IArchive.
def deleteComponentUploader(self, person, component_name):
See IArchive.
def deletePocketUploader(self, person, pocket):
See IArchive.
def deleteQueueAdmin(self, person, component_name):
See IArchive.
def deletePocketQueueAdmin(self, person, pocket, distroseries=None):
See IArchive.
def getUploadersForPackageset(self, packageset, direct_permissions=True):
See IArchive.
def deletePackagesetUploader(self, person, packageset, explicit=False):
See IArchive.
def getComponentsForUploader(self, person):
See IArchive.
def getPocketsForUploader(self, person):
See IArchive.
def getPackagesetsForUploader(self, person):
See IArchive.
def getPackagesetsForSourceUploader(self, sourcepackagename, person):
See IArchive.
def getPackagesetsForSource(self, sourcepackagename, direct_permissions=True):
See IArchive.
def isSourceUploadAllowed(self, sourcepackagename, person, distroseries=None):
See IArchive.
def getFileByName(self, filename):
See IArchive.
def getSourceFileByName(self, name, version, filename):
See IArchive.
def getBinaryPackageRelease(self, name, version, archtag):
See IArchive.
def getBinaryPackageReleaseByFileName(self, filename):
Undocumented
def requestPackageCopy(self, target_location, requestor, suite=None, copy_binaries=False, reason=None):
See IArchive.
def syncSources(self, source_names, from_archive, to_pocket, to_series=None, from_series=None, include_binaries=False, person=None):
See IArchive.
def _validateAndFindSource(self, from_archive, source_name, version, from_series=None, from_pocket=None):
Undocumented
def syncSource(self, source_name, version, from_archive, to_pocket, to_series=None, include_binaries=False, person=None):
See IArchive.
def copyPackage(self, source_name, version, from_archive, to_pocket, person, to_series=None, include_binaries=False, sponsored=None, unembargo=False, auto_approve=False, silent=False, from_pocket=None, from_series=None, phased_update_percentage=None):
See IArchive.
def copyPackages(self, source_names, from_archive, to_pocket, person, to_series=None, from_series=None, include_binaries=None, sponsored=None, unembargo=False, auto_approve=False, silent=False):
See IArchive.
def _collectLatestPublishedSources(self, from_archive, from_series, source_names):
Private helper to collect the latest published sources for an archive.
RaisesNoSuchSourcePackageNameIf any of the source_names do not exist.
CannotCopyIf none of the source_names are published in from_archive.
def _text_to_series(self, to_series, distribution=None):
Undocumented
def _text_to_pocket(self, to_pocket):
Undocumented
def _copySources(self, sources, to_pocket, to_series=None, include_binaries=False, person=None):
Private helper function to copy sources to this archive.

It takes a list of SourcePackagePublishingHistory but the other args are strings.

def getAuthToken(self, person):
See IArchive.
def newAuthToken(self, person, token=None, date_created=None):
See IArchive.
def newNamedAuthToken(self, name, token=None, as_dict=False):
See IArchive.
def newNamedAuthTokens(self, names, as_dict=False):
See IArchive.
def getNamedAuthToken(self, name, as_dict=False):
See IArchive.
def getNamedAuthTokens(self, names=None, as_dict=False):
See IArchive.
def revokeNamedAuthToken(self, name):
See IArchive.
def revokeNamedAuthTokens(self, names):
See IArchive.
def newSubscription(self, subscriber, registrant, date_expires=None, description=None):
See IArchive.
@property
def num_pkgs_building(self):
See IArchive.
def updatePackageDownloadCount(self, bpr, day, country, count):
See IArchive.
def getPackageDownloadTotal(self, bpr):
See IArchive.
def getPackageDownloadCount(self, bpr, day, country):
See IArchive.
def _setBuildQueueStatuses(self, status):
Update the pending BuildQueues' statuses for this archive.
def _recalculateBuildVirtualization(self):
Update virtualized columns for this archive.
def enable(self):
See IArchive.
def disable(self):
See IArchive.
def delete(self, deleted_by):
See IArchive.
def getFilesAndSha1s(self, source_files):
See IArchive.
def _getEnabledRestrictedProcessors(self):
Retrieve the restricted architectures this archive can build on.
def _setEnabledRestrictedProcessors(self, value):
Set the restricted architectures this archive can build on.
def enableRestrictedProcessor(self, processor):
See IArchive.
@property
def available_processors(self):
See IArchive.
def _getProcessors(self):
Undocumented
def setProcessors(self, processors, check_permissions=False, user=None):
See IArchive.
def getPockets(self):
See IArchive.
def _getExistingOverrideSequence(self, archive, distroseries, pocket, phased_update_percentage):
Undocumented
def getOverridePolicy(self, distroseries, pocket, phased_update_percentage=None):
See IArchive.
def removeCopyNotification(self, job_id):
See IArchive.
def markSuiteDirty(self, distroseries, pocket):
See IArchive.
API Documentation for Launchpad, generated by pydoctor at 2019-08-19 00:00:07.