backend.globaleaks.handlers.submission

Module Contents

Classes

SubmissionInstance The interface that creates, populates and finishes a submission.

Functions

decrypt_tip(user_key, tip_prv_key, tip)
db_set_internaltip_answers(session, itip_id, questionnaire_hash, answers)
db_set_internaltip_data(session, itip_id, key, value)
db_assign_submission_progressive(session, tid)
_db_serialize_archived_field_recursively(field, language)
db_serialize_archived_questionnaire_schema(questionnaire_schema, language)
db_serialize_archived_preview_schema(preview_schema, language)
db_save_plaintext_answers(session, tid, internaltip_id, entries, encryption, skip_encryption_fields=None)
extract_answers_preview(questionnaire, answers)
db_archive_questionnaire_schema(session, questionnaire)
db_get_itip_receiver_list(session, itip)
serialize_itip(session, internaltip, language)
serialize_usertip(session, usertip, itip, language)
db_create_receivertip(session, receiver, internaltip, can_access_whistleblower_identity, enc_key) Create a receiver tip for the specified receiver
db_create_submission(session, tid, request, token, client_using_tor)
create_submission(session, tid, request, token, client_using_tor)
backend.globaleaks.handlers.submission.decrypt_tip(user_key, tip_prv_key, tip)[source]
backend.globaleaks.handlers.submission.db_set_internaltip_answers(session, itip_id, questionnaire_hash, answers)[source]
backend.globaleaks.handlers.submission.db_set_internaltip_data(session, itip_id, key, value)[source]
backend.globaleaks.handlers.submission.db_assign_submission_progressive(session, tid)[source]
backend.globaleaks.handlers.submission._db_serialize_archived_field_recursively(field, language)[source]
backend.globaleaks.handlers.submission.db_serialize_archived_questionnaire_schema(questionnaire_schema, language)[source]
backend.globaleaks.handlers.submission.db_serialize_archived_preview_schema(preview_schema, language)[source]
backend.globaleaks.handlers.submission.db_save_plaintext_answers(session, tid, internaltip_id, entries, encryption, skip_encryption_fields=None)[source]
backend.globaleaks.handlers.submission.extract_answers_preview(questionnaire, answers)[source]
backend.globaleaks.handlers.submission.db_archive_questionnaire_schema(session, questionnaire)[source]
backend.globaleaks.handlers.submission.db_get_itip_receiver_list(session, itip)[source]
backend.globaleaks.handlers.submission.serialize_itip(session, internaltip, language)[source]
backend.globaleaks.handlers.submission.serialize_usertip(session, usertip, itip, language)[source]
backend.globaleaks.handlers.submission.db_create_receivertip(session, receiver, internaltip, can_access_whistleblower_identity, enc_key)[source]

Create a receiver tip for the specified receiver

backend.globaleaks.handlers.submission.db_create_submission(session, tid, request, token, client_using_tor)[source]
backend.globaleaks.handlers.submission.create_submission(session, tid, request, token, client_using_tor)[source]
class backend.globaleaks.handlers.submission.SubmissionInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

The interface that creates, populates and finishes a submission.

check_roles = none[source]
put(self, token_id)[source]

Finalize the submission