backend.globaleaks.handlers.receiver

Module Contents

Classes

TipsCollection Handler dealing with submissions fetch
TipsOperations Handler that enables to issue operations on submissions

Functions

get_receivertips(session, tid, receiver_id, user_key, language) Return list of submissions received by the specified receiver
perform_tips_operation(session, tid, receiver_id, operation, rtips_ids) Transaction for performing operation on submissions (postpone/delete)
backend.globaleaks.handlers.receiver.get_receivertips(session, tid, receiver_id, user_key, language)[source]

Return list of submissions received by the specified receiver

Parameters:
  • session – An ORM session
  • tid – The tenant ID
  • receiver_id – The receiver ID
  • user_key – The user key to be used for decrypting data
  • language – The language to be used during data serialization
Returns:

A list of submissions descriptors

backend.globaleaks.handlers.receiver.perform_tips_operation(session, tid, receiver_id, operation, rtips_ids)[source]

Transaction for performing operation on submissions (postpone/delete)

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • receiver_id – A recipient ID
  • operation – An operation command (postpone/delete)
  • rtips_ids – The set of submissions on which performing the specified operation
class backend.globaleaks.handlers.receiver.TipsCollection[source]

Bases: globaleaks.handlers.base.BaseHandler

Handler dealing with submissions fetch

check_roles = receiver[source]
get(self)[source]
class backend.globaleaks.handlers.receiver.TipsOperations[source]

Bases: globaleaks.handlers.base.BaseHandler

Handler that enables to issue operations on submissions

check_roles = receiver[source]
put(self)[source]