Package daklib :: Module policy :: Class PolicyQueueUploadHandler
[hide private]
[frames] | no frames]

Class PolicyQueueUploadHandler

source code

process uploads to policy queues

This class allows to accept or reject uploads and to get a list of missing overrides (for NEW processing).

Instance Methods [hide private]
 
__init__(self, upload, session)
initializer
source code
 
_overridesuite(self) source code
 
_source_override(self, component_name) source code
 
_binary_override(self, name, binarytype, component_name) source code
 
_changes_prefix(self) source code
 
accept(self)
mark upload as accepted
source code
 
reject(self, reason)
mark upload as rejected
source code
str
get_action(self)
get current action
source code
 
missing_overrides(self, hints=None)
get missing override entries for the upload
source code
 
add_overrides(self, new_overrides, suite) source code
Method Details [hide private]

__init__(self, upload, session)
(Constructor)

source code 

initializer

Parameters:

_overridesuite(self)

source code 
Decorators:
  • @property

_changes_prefix(self)

source code 
Decorators:
  • @property

reject(self, reason)

source code 

mark upload as rejected

Parameters:
  • reason (str) - reason for the rejection

get_action(self)

source code 

get current action

Returns: str
string giving the current action, one of 'ACCEPT', 'ACCEPTED', 'REJECT'

missing_overrides(self, hints=None)

source code 

get missing override entries for the upload

Parameters:
  • hints (list of dict) - suggested hints for new overrides in the same format as the return value
Returns:
list of dicts with the following keys:
  • package: package name
  • priority: default priority (from upload)
  • section: default section (from upload)
  • component: default component (from upload)
  • type: type of required override ('dsc', 'deb' or 'udeb')

    All values are strings.