backend.globaleaks.state

Module Contents

Functions

getAlarm(state)
mail_exception_handler(etype, value, tback) Formats traceback and exception data and emails the error,
extract_exception_traceback_and_schedule_email(e)
backend.globaleaks.state.getAlarm(state)[source]
class backend.globaleaks.state.TenantState(state)[source]

Bases: object

class backend.globaleaks.state.StateClass[source]

Bases: globaleaks.utils.objectdict.ObjectDict

init_environment(self)[source]
set_orm_tp(self, orm_tp)[source]
get_agent(self)[source]
create_directory(self, path)[source]

Create the specified directory; Returns True on success, False if the directory was already existing

create_directories(self)[source]

Execute some consistency checks on command provided Globaleaks paths

if one of working_path or static path is created we copy here the static files (default logs, and in the future pot files for localization) because here stay all the files needed by the application except the python scripts

cleaning_dead_files(self)[source]

This function is called at the start of GlobaLeaks, in bin/globaleaks, and checks if the file is present in temporally_encrypted_dir

reset_hourly(self)[source]
sendmail(self, tid, to_address, subject, body)[source]
schedule_exception_email(self, tid, exception_text, *args)[source]
refresh_connection_endpoints(self)[source]
format_and_send_mail(self, session, tid, user_desc, template_vars)[source]
get_tmp_file_by_name(self, filename)[source]
backend.globaleaks.state.mail_exception_handler(etype, value, tback)[source]

Formats traceback and exception data and emails the error, This would be enabled only in the testing phase and testing release, not in production release.

backend.globaleaks.state.extract_exception_traceback_and_schedule_email(e)[source]
backend.globaleaks.state.State[source]