backend.globaleaks.handlers.file

Module Contents

Classes

FileHandler Handler that provide public access to configuration files

Functions

db_mark_file_for_secure_deletion(session, directory, filename) Transaction for marking a file for secure deletion
get_file_id(session, tid, name) Transaction returning a file ID given the file name
backend.globaleaks.handlers.file.appfiles[source]
backend.globaleaks.handlers.file.db_mark_file_for_secure_deletion(session, directory, filename)[source]

Transaction for marking a file for secure deletion

Parameters:
  • session – An ORM session
  • directory – A path of the directory containing the file
  • filename – A file name
backend.globaleaks.handlers.file.get_file_id(session, tid, name)[source]

Transaction returning a file ID given the file name

Parameters:
  • session – An ORM session
  • tid – A tenant on which performing the lookup
  • name – A file name
Returns:

A result model

class backend.globaleaks.handlers.file.FileHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

Handler that provide public access to configuration files

check_roles = none[source]
get(self, name)[source]