Part of lp.soyuz.browser.queue View In Hierarchy
Known subclasses: lp.soyuz.browser.distroseries.DistroSeriesQueueView
It retrieves the UI queue_state selector action and sets up a proper batched list with the requested results. See further UI details in template/distroseries-queue.pt and callsite details in DistroSeries view classes.
|Method||setupQueueList||Setup a batched queue list.|
|Method||builds_dict||Return a dictionary of PackageUploadBuild keyed on build ID.|
|Method||binary_files_dict||Build a dictionary of lists of binary files keyed by upload ID.|
|Method||source_files_dict||Return a dictionary of source files keyed on PackageUpload ID.|
|Method||calculateOldBinaries||Calculate uploaded binary files in this batch that are old.|
|Method||loadPackageCopyJobs||Batch-load `PackageCopyJob`s and related information.|
|Method||decoratedQueueBatch||Return the current batch, converted to decorated objects.|
|Method||is_new||Return True if the binarypackagerelease has no ancestry.|
|Method||availableActions||Return the available actions according to the selected queue state.|
|Method||performQueueAction||Execute the designed action over the selected queue items.|
|Method||sortedSections||Possible sections for the context distroseries.|
|Method||priorities||An iterable of priorities from PackagePublishingPriority.|
Returns None, so use tal:condition="not: view/setupQueueList" to invoke it in template.
|Parameters||upload_ids||A list of PackageUpload IDs.|
|binary_files||A list of BinaryPackageReleaseFiles.|
To do this efficiently we need to get all the PackageUploadBuild records at once, otherwise the IBuild.package_upload property causes one query per iteration of the loop.
Find associated `Packagesets`. :param source_package_releases: A sequence of `SourcePackageRelease`s.
Each batch item, a PackageUpload, is converted to a CompletePackageUpload. This avoids many additional SQL queries in the +queue template.
Returns a list of labelled actions or an empty list.
Returns a message describing the action executed or None if nothing was done.
Return an iterable of possible sections for the context distroseries sorted by their name.