Project

Profile

Help

Task #2917

closed

Add keyword arguments to the Plugin API and switch some attributes to properties

Added by bmbouter almost 7 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 25
Quarter:

Description

The following kwargs should be added to the plugin API constructors:

pulpcore.plugin.changeset.main.ChangeSet(self, importer, additions=(), removals=(), deferred=False):  # adds 'deferred'

pulpcore.plugin.changeset.model.RemoteContent(self, model, artifacts=None):  # adds 'artifacts'

pulpcore.plugin.changeset.model.RemoteArtifact(self, model, download, content=None):  # adds 'content'

pulpcore.plugin.changeset.report.ChangeReport(self, action, content, error=None):  # adds 'error'

pulpcore.plugin.download.HttpDownload(self, url, writer, method='GET', timeout=None, user=None, ssl=None, proxy_url=None, headers=None):  # adds 'timeout', 'user', 'ssl', 'proxy_url', and 'headers'

pulpcore.plugin.download.FtpDownload(self, url, writer, user=None):   # adds 'user'.

pulpcore.plugin.download.Batch.__init__(self, downloads, concurrent=CONCURRENT, backlog=BACKLOG, context=None):  # adds 'context'

Related issues

Has duplicate Pulp - Task #2918: Add keyword arguments for all options to all objects in pulpcore.plugin.downloadCLOSED - DUPLICATE

Actions

Also available in: Atom PDF