backend.globaleaks.db.appdata

Module Contents

Functions

load_appdata() Utility function to load the application data file
db_load_default_questionnaires(session) Transaction for loading default questionnaires
db_load_default_fields(session) Transaction for loading default questions
db_load_defaults(session) Transaction for updating application defaults
db_fix_fields_attrs(session) Ensures that questions loaded into the database have the same structure of field_attrs.json
backend.globaleaks.db.appdata.load_appdata()[source]

Utility function to load the application data file

Returns:Return the parsed application data file
backend.globaleaks.db.appdata.db_load_default_questionnaires(session)[source]

Transaction for loading default questionnaires :param session: An ORM session

backend.globaleaks.db.appdata.db_load_default_fields(session)[source]

Transaction for loading default questions :param session: An ORM session

backend.globaleaks.db.appdata.db_load_defaults(session)[source]

Transaction for updating application defaults

Parameters:session – An ORM session
backend.globaleaks.db.appdata.db_fix_fields_attrs(session)[source]

Ensures that questions loaded into the database have the same structure of field_attrs.json

Parameters:session – An ORM session