backend.globaleaks.models

ORM Models definitions.

Package Contents

Classes

LocalizationEngine This Class can manage all the localized strings inside one ORM object
Model Base ORM model
_Anomalies Base ORM model
_ArchivedSchema Base ORM model
_Backup Base ORM model
_Comment This table handle the comment collection, has an InternalTip referenced
_Config Base ORM model
_ConfigL10N Base ORM model
_Context This model keeps track of contexts settings.
_ContextImg Class used for storing context pictures
_CustomTexts Class used to implement custom texts
_EnabledLanguage Base ORM model
_Field Base ORM model
_FieldAttr Base ORM model
_FieldAnswer Base ORM model
_FieldAnswerGroup Base ORM model
_FieldOption Base ORM model
_FieldOptionTriggerField Base ORM model
_FieldOptionTriggerStep Base ORM model
_File Class used for storing files
_AuditLog This model contains audit’s logs
_IdentityAccessRequest This model keeps track of identity access requests by receivers and
_InternalFile This model keeps track of submission files
_InternalTip This is the internal representation of a Tip that has been submitted
_InternalTipAnswers This is the internal representation of Tip Questionnaire Answers
_InternalTipData Base ORM model
_Mail This model keeps track of emails to be spooled by the system
_Message This table handle the direct messages between whistleblower and one
_Questionnaire Base ORM model
_ReceiverContext Class used to implement references between Receivers and Contexts
_ReceiverFile This model keeps track of files destinated to a specific receiver
_ReceiverTip This is the table keeping track of ALL the receivers activities and
_SecureFileDelete Base ORM model
_Signup Base ORM model
_Redirect Class used to implement url redirects
_Step Base ORM model
_Stats Base ORM model
_SubmissionStatus Contains the statuses a submission may be in
_SubmissionSubStatus Contains the substatuses that a submission may be in
_SubmissionStatusChange Contains a record of all changes of status of a submission
_Tenant Class used to implement tenants
_User This model keeps track of users.
_UserImg Class used for storing user pictures
_WhistleblowerFile This models stores metadata of files uploaded by recipients intended to be
_WhistleblowerTip Base ORM model
Anomalies Base ORM model
ArchivedSchema Base ORM model
AuditLog This model contains audit’s logs
Backup Base ORM model
Comment This table handle the comment collection, has an InternalTip referenced
Config Base ORM model
ConfigL10N Base ORM model
Context This model keeps track of contexts settings.
ContextImg Class used for storing context pictures
CustomTexts Class used to implement custom texts
EnabledLanguage Base ORM model
Field Base ORM model
FieldAttr Base ORM model
FieldAnswer Base ORM model
FieldAnswerGroup Base ORM model
FieldOption Base ORM model
FieldOptionTriggerField Base ORM model
FieldOptionTriggerStep Base ORM model
File Class used for storing files
IdentityAccessRequest This model keeps track of identity access requests by receivers and
InternalFile This model keeps track of submission files
InternalTip This is the internal representation of a Tip that has been submitted
InternalTipAnswers This is the internal representation of Tip Questionnaire Answers
InternalTipData Base ORM model
Mail This model keeps track of emails to be spooled by the system
Message This table handle the direct messages between whistleblower and one
Questionnaire Base ORM model
ReceiverContext Class used to implement references between Receivers and Contexts
ReceiverFile This model keeps track of files destinated to a specific receiver
ReceiverTip This is the table keeping track of ALL the receivers activities and
SecureFileDelete Base ORM model
Redirect Class used to implement url redirects
Signup Base ORM model
SubmissionStatus Contains the statuses a submission may be in
SubmissionSubStatus Contains the substatuses that a submission may be in
SubmissionStatusChange Contains a record of all changes of status of a submission
Stats Base ORM model
Step Base ORM model
Tenant Class used to implement tenants
User This model keeps track of users.
UserImg Class used for storing user pictures
WhistleblowerFile This models stores metadata of files uploaded by recipients intended to be
WhistleblowerTip Base ORM model

Functions

db_forge_obj(session, mock_class, mock_fields)
forge_obj(session, mock_class, mock_fields)
db_get(session, model, *args, **kwargs)
get(session, model, *args, **kwargs)
db_delete(session, model, *args, **kwargs)
delete(session, model, *args, **kwargs)
fill_localized_keys(dictionary, keys, language)
get_localized_values(dictionary, obj, keys, language)
backend.globaleaks.models.db_forge_obj(session, mock_class, mock_fields)[source]
backend.globaleaks.models.forge_obj(session, mock_class, mock_fields)[source]
backend.globaleaks.models.db_get(session, model, *args, **kwargs)[source]
backend.globaleaks.models.get(session, model, *args, **kwargs)[source]
backend.globaleaks.models.db_delete(session, model, *args, **kwargs)[source]
backend.globaleaks.models.delete(session, model, *args, **kwargs)[source]
class backend.globaleaks.models.LocalizationEngine(keys)[source]

Bases: object

This Class can manage all the localized strings inside one ORM object

acquire_orm_object(self, obj)[source]
acquire_multilang_dict(self, obj)[source]
singlelang_to_multilang_dict(self, obj, language)[source]
dump_localized_key(self, key, language)[source]
backend.globaleaks.models.fill_localized_keys(dictionary, keys, language)[source]
backend.globaleaks.models.get_localized_values(dictionary, obj, keys, language)[source]
backend.globaleaks.models.Base[source]
class backend.globaleaks.models.Model(values=None, migrate=False)[source]

Bases: object

Base ORM model

properties = [][source]
unicode_keys = [][source]
localized_keys = [][source]
int_keys = [][source]
bool_keys = [][source]
datetime_keys = [][source]
json_keys = [][source]
date_keys = [][source]
optional_references = [][source]
list_keys = [][source]
update(self, values=None)[source]

Updated Models attributes from dict.

__setattr__(self, name, value)[source]

Implement setattr(self, name, value).

dict(self, language=None)[source]

Return a dictionary serialization of the current model.

class backend.globaleaks.models._Anomalies(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = anomalies[source]
id[source]
tid[source]
date[source]
alarm[source]
events[source]
__table_args__(self)[source]
class backend.globaleaks.models._ArchivedSchema(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = archivedschema[source]
hash[source]
schema[source]
preview[source]
unicode_keys = ['hash'][source]
class backend.globaleaks.models._Backup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = backup[source]
id[source]
creation_date[source]
filename[source]
local[source]
remote[source]
delete[source]
class backend.globaleaks.models._Comment(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This table handle the comment collection, has an InternalTip referenced

__tablename__ = comment[source]
id[source]
creation_date[source]
internaltip_id[source]
author_id[source]
content[source]
type[source]
new[source]
__table_args__(self)[source]
class backend.globaleaks.models._Config(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = config[source]
tid[source]
var_name[source]
value[source]
update_date[source]
__table_args__(self)[source]
set_v(self, val)[source]
class backend.globaleaks.models._ConfigL10N(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = config_l10n[source]
tid[source]
lang[source]
var_name[source]
value[source]
update_date[source]
__table_args__(self)[source]
set_v(self, value)[source]
class backend.globaleaks.models._Context(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of contexts settings.

__tablename__ = context[source]
id[source]
tid[source]
show_steps_navigation_interface[source]
show_small_receiver_cards[source]
show_recipients_details[source]
allow_recipients_selection[source]
maximum_selectable_receivers[source]
select_all_receivers[source]
enable_comments[source]
enable_messages[source]
enable_two_way_comments[source]
enable_two_way_messages[source]
enable_attachments[source]
enable_rc_to_wb_files[source]
tip_timetolive[source]
name[source]
description[source]
recipients_clarification[source]
status_page_message[source]
show_receivers_in_alphabetical_order[source]
score_threshold_high[source]
score_threshold_medium[source]
score_receipt_text_custom[source]
score_receipt_text_l[source]
score_receipt_text_m[source]
score_receipt_text_h[source]
score_threshold_receipt[source]
questionnaire_id[source]
additional_questionnaire_id[source]
languages[source]
status[source]
order[source]
unicode_keys = ['questionnaire_id', 'additional_questionnaire_id', 'languages', 'status'][source]
localized_keys = ['name', 'description', 'recipients_clarification', 'status_page_message', 'score_receipt_text_l', 'score_receipt_text_m', 'score_receipt_text_h'][source]
int_keys = ['tip_timetolive', 'maximum_selectable_receivers', 'order', 'score_threshold_high', 'score_threshold_medium', 'score_threshold_receipt'][source]
bool_keys = ['select_all_receivers', 'show_small_receiver_cards', 'show_context', 'show_recipients_details', 'show_receivers_in_alphabetical_order', 'show_steps_navigation_interface', 'allow_recipients_selection', 'enable_comments', 'enable_messages', 'enable_two_way_comments', 'enable_two_way_messages', 'enable_attachments', 'enable_rc_to_wb_files', 'score_receipt_text_custom'][source]
list_keys = ['receivers'][source]
__table_args__(self)[source]
class backend.globaleaks.models._ContextImg(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used for storing context pictures

__tablename__ = contextimg[source]
id[source]
data[source]
unicode_keys = ['data'][source]
__table_args__(self)[source]
class backend.globaleaks.models._CustomTexts(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used to implement custom texts

__tablename__ = customtexts[source]
tid[source]
lang[source]
texts[source]
unicode_keys = ['lang'][source]
json_keys = ['texts'][source]
__table_args__(self)[source]
class backend.globaleaks.models._EnabledLanguage(tid=1, name=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = enabledlanguage[source]
tid[source]
name[source]
classmethod list(cls, session, tid)[source]
classmethod tid_list(cls, session, tid_list)[source]
__table_args__(self)[source]
class backend.globaleaks.models._Field(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = field[source]
id[source]
tid[source]
x[source]
y[source]
width[source]
label[source]
description[source]
hint[source]
placeholder[source]
required[source]
preview[source]
encrypt[source]
multi_entry[source]
multi_entry_hint[source]
triggered_by_score[source]
step_id[source]
fieldgroup_id[source]
type[source]
instance[source]
editable[source]
template_id[source]
template_override_id[source]
unicode_keys = ['type', 'instance', 'key'][source]
int_keys = ['x', 'y', 'width', 'triggered_by_score'][source]
localized_keys = ['label', 'description', 'hint', 'multi_entry_hint', 'placeholder'][source]
bool_keys = ['editable', 'multi_entry', 'preview', 'required', 'encrypt'][source]
optional_references = ['template_id', 'step_id', 'fieldgroup_id', 'template_override_id'][source]
__table_args__(self)[source]
class backend.globaleaks.models._FieldAttr(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldattr[source]
id[source]
field_id[source]
name[source]
type[source]
value[source]
unicode_keys = ['field_id', 'name', 'type'][source]
__table_args__(self)[source]
update(self, values=None)[source]

Updated Models attributes from dict.

class backend.globaleaks.models._FieldAnswer(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldanswer[source]
id[source]
internaltip_id[source]
fieldanswergroup_id[source]
key[source]
is_leaf[source]
value[source]
unicode_keys = ['internaltip_id', 'key', 'value'][source]
bool_keys = ['is_leaf'][source]
__table_args__(self)[source]
class backend.globaleaks.models._FieldAnswerGroup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldanswergroup[source]
id[source]
number[source]
fieldanswer_id[source]
unicode_keys = ['fieldanswer_id'][source]
int_keys = ['number'][source]
__table_args__(self)[source]
class backend.globaleaks.models._FieldOption(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldoption[source]
id[source]
field_id[source]
order[source]
label[source]
hint1[source]
hint2[source]
score_points[source]
score_type[source]
block_submission[source]
trigger_receiver[source]
unicode_keys = ['field_id'][source]
bool_keys = ['block_submission'][source]
int_keys = ['order', 'score_points'][source]
json_keys = ['trigger_receiver'][source]
localized_keys = ['hint1', 'hint2', 'label'][source]
__table_args__(self)[source]
class backend.globaleaks.models._FieldOptionTriggerField(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldoptiontriggerfield[source]
option_id[source]
object_id[source]
sufficient[source]
__table_args__(self)[source]
class backend.globaleaks.models._FieldOptionTriggerStep(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = fieldoptiontriggerstep[source]
option_id[source]
object_id[source]
sufficient[source]
__table_args__(self)[source]
class backend.globaleaks.models._File(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used for storing files

__tablename__ = file[source]
tid[source]
id[source]
name[source]
data[source]
unicode_keys = ['data', 'name'][source]
__table_args__(self)[source]
class backend.globaleaks.models._AuditLog(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model contains audit’s logs

__tablename__ = auditlog[source]
tid[source]
id[source]
event_date[source]
event_type[source]
event_severity[source]
event_data[source]
user_id[source]
object_id[source]
object_value[source]
class backend.globaleaks.models._IdentityAccessRequest(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of identity access requests by receivers and of the answers by custodians.

__tablename__ = identityaccessrequest[source]
id[source]
receivertip_id[source]
request_date[source]
request_motivation[source]
reply_date[source]
reply_user_id[source]
reply_motivation[source]
reply[source]
__table_args__(self)[source]
class backend.globaleaks.models._InternalFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of submission files

__tablename__ = internalfile[source]
id[source]
creation_date[source]
internaltip_id[source]
name[source]
filename[source]
content_type[source]
size[source]
new[source]
submission[source]
__table_args__(self)[source]
class backend.globaleaks.models._InternalTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This is the internal representation of a Tip that has been submitted

__tablename__ = internaltip[source]
id[source]
tid[source]
creation_date[source]
update_date[source]
context_id[source]
preview[source]
progressive[source]
https[source]
mobile[source]
total_score[source]
expiration_date[source]
enable_two_way_comments[source]
enable_two_way_messages[source]
enable_attachments[source]
enable_whistleblower_identity[source]
label[source]
additional_questionnaire_id[source]
wb_last_access[source]
wb_access_counter[source]
status[source]
substatus[source]
crypto_tip_pub_key[source]
__table_args__(self)[source]
class backend.globaleaks.models._InternalTipAnswers(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This is the internal representation of Tip Questionnaire Answers

__tablename__ = internaltipanswers[source]
internaltip_id[source]
questionnaire_hash[source]
creation_date[source]
answers[source]
__table_args__(self)[source]
class backend.globaleaks.models._InternalTipData(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = internaltipdata[source]
internaltip_id[source]
key[source]
creation_date[source]
value[source]
__table_args__(self)[source]
class backend.globaleaks.models._Mail(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of emails to be spooled by the system

__tablename__ = mail[source]
id[source]
tid[source]
creation_date[source]
address[source]
subject[source]
body[source]
processing_attempts[source]
unicode_keys = ['address', 'subject', 'body'][source]
__table_args__(self)[source]
class backend.globaleaks.models._Message(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This table handle the direct messages between whistleblower and one Receiver.

__tablename__ = message[source]
id[source]
creation_date[source]
receivertip_id[source]
content[source]
type[source]
new[source]
__table_args__(self)[source]
class backend.globaleaks.models._Questionnaire(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = questionnaire[source]
id[source]
tid[source]
name[source]
enable_whistleblower_identity[source]
editable[source]
unicode_keys = ['key', 'name'][source]
bool_keys = ['editable'][source]
list_keys = ['steps'][source]
__table_args__(self)[source]
class backend.globaleaks.models._ReceiverContext(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used to implement references between Receivers and Contexts

__tablename__ = receiver_context[source]
context_id[source]
receiver_id[source]
order[source]
unicode_keys = ['context_id', 'receiver_id'][source]
int_keys = ['order'][source]
__table_args__(self)[source]
class backend.globaleaks.models._ReceiverFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of files destinated to a specific receiver

__tablename__ = receiverfile[source]
id[source]
internalfile_id[source]
receivertip_id[source]
filename[source]
downloads[source]
last_access[source]
new[source]
status[source]
__table_args__(self)[source]
class backend.globaleaks.models._ReceiverTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This is the table keeping track of ALL the receivers activities and date in a Tip, Tip core data are stored in StoredTip. The data here provide accountability of Receiver accesses, operations, options.

__tablename__ = receivertip[source]
id[source]
internaltip_id[source]
receiver_id[source]
last_access[source]
access_counter[source]
label[source]
can_access_whistleblower_identity[source]
new[source]
enable_notifications[source]
crypto_tip_prv_key[source]
__table_args__(self)[source]
class backend.globaleaks.models._SecureFileDelete(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = securefiledelete[source]
id[source]
filepath[source]
class backend.globaleaks.models._Signup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = signup[source]
id[source]
tid[source]
subdomain[source]
language[source]
name[source]
surname[source]
role[source]
phone[source]
email[source]
use_case[source]
use_case_other[source]
organization_name[source]
organization_type[source]
organization_location1[source]
organization_location2[source]
organization_location3[source]
organization_location4[source]
organization_site[source]
organization_number_employees[source]
organization_number_users[source]
hear_channel[source]
activation_token[source]
client_ip_address[source]
client_user_agent[source]
registration_date[source]
tos1[source]
tos2[source]
unicode_keys = ['subdomain', 'language', 'name', 'surname', 'role', 'phone', 'email', 'use_case', 'use_case_other', 'organization_name', 'organization_type', 'organization_site', 'organization_location1', 'organization_location2', 'organization_location3', 'organization_location4', 'organization_number_employees', 'organization_number_users', 'hear_channel', 'client_ip_address', 'client_user_agent', 'activation_token'][source]
bool_keys = ['tos1', 'tos2'][source]
__table_args__(self)[source]
class backend.globaleaks.models._Redirect(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used to implement url redirects

__tablename__ = redirect[source]
id[source]
tid[source]
path1[source]
path2[source]
unicode_keys = ['path1', 'path2'][source]
__table_args__(self)[source]
class backend.globaleaks.models._Step(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = step[source]
id[source]
questionnaire_id[source]
label[source]
description[source]
triggered_by_score[source]
order[source]
unicode_keys = ['questionnaire_id'][source]
int_keys = ['order', 'triggered_by_score'][source]
localized_keys = ['label', 'description'][source]
__table_args__(self)[source]
class backend.globaleaks.models._Stats(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = stats[source]
id[source]
tid[source]
start[source]
summary[source]
__table_args__(self)[source]
class backend.globaleaks.models._SubmissionStatus(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Contains the statuses a submission may be in

__tablename__ = submissionstatus[source]
id[source]
tid[source]
label[source]
tip_timetolive[source]
tip_timetolive_override[source]
receivers[source]
order[source]
localized_keys = ['label'][source]
int_keys = ['order', 'tip_timetolive'][source]
bool_keys = ['tip_timetolive_override'][source]
json_keys = ['receivers'][source]
__table_args__(self)[source]
class backend.globaleaks.models._SubmissionSubStatus(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Contains the substatuses that a submission may be in

__tablename__ = submissionsubstatus[source]
id[source]
tid[source]
submissionstatus_id[source]
label[source]
tip_timetolive[source]
tip_timetolive_override[source]
receivers[source]
order[source]
localized_keys = ['label'][source]
int_keys = ['order', 'tip_timetolive'][source]
bool_keys = ['tip_timetolive_override'][source]
json_keys = ['receivers'][source]
__table_args__(self)[source]
class backend.globaleaks.models._SubmissionStatusChange(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Contains a record of all changes of status of a submission

__tablename__ = submissionstatuschange[source]
id[source]
internaltip_id[source]
status[source]
substatus[source]
changed_on[source]
changed_by[source]
__table_args__(self)[source]
class backend.globaleaks.models._Tenant(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used to implement tenants

__tablename__ = tenant[source]
id[source]
label[source]
active[source]
creation_date[source]
subdomain[source]
unicode_keys = ['label', 'subdomain'][source]
bool_keys = ['active'][source]
class backend.globaleaks.models._User(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This model keeps track of users.

__tablename__ = user[source]
id[source]
tid[source]
creation_date[source]
username[source]
salt[source]
hash_alg[source]
password[source]
name[source]
description[source]
public_name[source]
role[source]
state[source]
last_login[source]
mail_address[source]
language[source]
password_change_needed[source]
password_change_date[source]
crypto_prv_key[source]
crypto_pub_key[source]
crypto_rec_key[source]
crypto_bkp_key[source]
crypto_escrow_prv_key[source]
crypto_escrow_bkp1_key[source]
crypto_escrow_bkp2_key[source]
change_email_address[source]
change_email_token[source]
change_email_date[source]
reset_password_token[source]
reset_password_date[source]
notification[source]
recipient_configuration[source]
can_delete_submission[source]
can_postpone_expiration[source]
can_grant_permissions[source]
can_edit_general_settings[source]
readonly[source]
two_factor_enable[source]
two_factor_secret[source]
pgp_key_fingerprint[source]
pgp_key_public[source]
pgp_key_expiration[source]
unicode_keys = ['username', 'role', 'state', 'language', 'mail_address', 'name', 'public_name', 'language', 'change_email_address', 'salt', 'recipient_configuration', 'two_factor_secret'][source]
localized_keys = ['description'][source]
bool_keys = ['password_change_needed', 'notification', 'can_edit_general_settings', 'can_delete_submission', 'can_postpone_expiration', 'can_grant_permissions', 'two_factor_enable', 'readonly'][source]
date_keys = ['creation_date', 'last_login', 'password_change_date', 'pgp_key_expiration'][source]
__table_args__(self)[source]
class backend.globaleaks.models._UserImg(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Class used for storing user pictures

__tablename__ = userimg[source]
id[source]
data[source]
unicode_keys = ['data'][source]
__table_args__(self)[source]
class backend.globaleaks.models._WhistleblowerFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

This models stores metadata of files uploaded by recipients intended to be delivered to the whistleblower. This file is not encrypted and nor is it integrity checked in any meaningful way.

__tablename__ = whistleblowerfile[source]
id[source]
receivertip_id[source]
name[source]
filename[source]
size[source]
content_type[source]
downloads[source]
creation_date[source]
last_access[source]
description[source]
new[source]
__table_args__(self)[source]
class backend.globaleaks.models._WhistleblowerTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models.Model

Base ORM model

__tablename__ = whistleblowertip[source]
id[source]
tid[source]
receipt_hash[source]
hash_alg[source]
crypto_prv_key[source]
crypto_pub_key[source]
crypto_tip_prv_key[source]
__table_args__(self)[source]
class backend.globaleaks.models.Anomalies(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Anomalies, Base

Base ORM model

class backend.globaleaks.models.ArchivedSchema(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ArchivedSchema, Base

Base ORM model

class backend.globaleaks.models.AuditLog(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._AuditLog, Base

This model contains audit’s logs

class backend.globaleaks.models.Backup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Backup, Base

Base ORM model

class backend.globaleaks.models.Comment(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Comment, Base

This table handle the comment collection, has an InternalTip referenced

class backend.globaleaks.models.Config(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Config, Base

Base ORM model

class backend.globaleaks.models.ConfigL10N(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ConfigL10N, Base

Base ORM model

class backend.globaleaks.models.Context(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Context, Base

This model keeps track of contexts settings.

class backend.globaleaks.models.ContextImg(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ContextImg, Base

Class used for storing context pictures

class backend.globaleaks.models.CustomTexts(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._CustomTexts, Base

Class used to implement custom texts

class backend.globaleaks.models.EnabledLanguage(tid=1, name=None, migrate=False)[source]

Bases: backend.globaleaks.models._EnabledLanguage, Base

Base ORM model

class backend.globaleaks.models.Field(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Field, Base

Base ORM model

class backend.globaleaks.models.FieldAttr(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldAttr, Base

Base ORM model

class backend.globaleaks.models.FieldAnswer(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldAnswer, Base

Base ORM model

class backend.globaleaks.models.FieldAnswerGroup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldAnswerGroup, Base

Base ORM model

class backend.globaleaks.models.FieldOption(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldOption, Base

Base ORM model

class backend.globaleaks.models.FieldOptionTriggerField(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldOptionTriggerField, Base

Base ORM model

class backend.globaleaks.models.FieldOptionTriggerStep(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._FieldOptionTriggerStep, Base

Base ORM model

class backend.globaleaks.models.File(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._File, Base

Class used for storing files

class backend.globaleaks.models.IdentityAccessRequest(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._IdentityAccessRequest, Base

This model keeps track of identity access requests by receivers and of the answers by custodians.

class backend.globaleaks.models.InternalFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._InternalFile, Base

This model keeps track of submission files

class backend.globaleaks.models.InternalTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._InternalTip, Base

This is the internal representation of a Tip that has been submitted

class backend.globaleaks.models.InternalTipAnswers(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._InternalTipAnswers, Base

This is the internal representation of Tip Questionnaire Answers

class backend.globaleaks.models.InternalTipData(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._InternalTipData, Base

Base ORM model

class backend.globaleaks.models.Mail(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Mail, Base

This model keeps track of emails to be spooled by the system

class backend.globaleaks.models.Message(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Message, Base

This table handle the direct messages between whistleblower and one Receiver.

class backend.globaleaks.models.Questionnaire(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Questionnaire, Base

Base ORM model

class backend.globaleaks.models.ReceiverContext(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ReceiverContext, Base

Class used to implement references between Receivers and Contexts

class backend.globaleaks.models.ReceiverFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ReceiverFile, Base

This model keeps track of files destinated to a specific receiver

class backend.globaleaks.models.ReceiverTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._ReceiverTip, Base

This is the table keeping track of ALL the receivers activities and date in a Tip, Tip core data are stored in StoredTip. The data here provide accountability of Receiver accesses, operations, options.

class backend.globaleaks.models.SecureFileDelete(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._SecureFileDelete, Base

Base ORM model

class backend.globaleaks.models.Redirect(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Redirect, Base

Class used to implement url redirects

class backend.globaleaks.models.Signup(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Signup, Base

Base ORM model

class backend.globaleaks.models.SubmissionStatus(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._SubmissionStatus, Base

Contains the statuses a submission may be in

class backend.globaleaks.models.SubmissionSubStatus(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._SubmissionSubStatus, Base

Contains the substatuses that a submission may be in

class backend.globaleaks.models.SubmissionStatusChange(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._SubmissionStatusChange, Base

Contains a record of all changes of status of a submission

class backend.globaleaks.models.Stats(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Stats, Base

Base ORM model

class backend.globaleaks.models.Step(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Step, Base

Base ORM model

class backend.globaleaks.models.Tenant(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._Tenant, Base

Class used to implement tenants

class backend.globaleaks.models.User(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._User, Base

This model keeps track of users.

class backend.globaleaks.models.UserImg(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._UserImg, Base

Class used for storing user pictures

class backend.globaleaks.models.WhistleblowerFile(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._WhistleblowerFile, Base

This models stores metadata of files uploaded by recipients intended to be delivered to the whistleblower. This file is not encrypted and nor is it integrity checked in any meaningful way.

class backend.globaleaks.models.WhistleblowerTip(values=None, migrate=False)[source]

Bases: backend.globaleaks.models._WhistleblowerTip, Base

Base ORM model