backend.globaleaks.models.config

Module Contents

Functions

get_default(default)
db_get_config_variable(session, tid, var)
db_set_config_variable(session, tid, var, val)
initialize_config(session, tid, mode)
add_new_lang(session, tid, lang, appdata_dict)
update_defaults(session, tid, appdata)
backend.globaleaks.models.config.inherit_from_root_tenant = ['default_questionnaire'][source]
backend.globaleaks.models.config.get_default(default)[source]
class backend.globaleaks.models.config.ConfigFactory(session, tid)[source]

Bases: object

get_all(self, group)[source]
update(self, group, data)[source]
get_cfg(self, var_name)[source]
get_val(self, var_name)[source]
set_val(self, var_name, value)[source]
serialize(self, group)[source]
update_defaults(self)[source]
class backend.globaleaks.models.config.ConfigL10NFactory(session, tid)[source]

Bases: object

initialize(self, keys, lang, data)[source]
get_all(self, group, lang)[source]
serialize(self, group, lang)[source]
update(self, group, data, lang)[source]
update_defaults(self, group, langs, data, reset=False)[source]
get_val(self, var_name, lang)[source]
set_val(self, var_name, lang, value)[source]
reset(self, group, data)[source]
backend.globaleaks.models.config.db_get_config_variable(session, tid, var)[source]
backend.globaleaks.models.config.db_set_config_variable(session, tid, var, val)[source]
backend.globaleaks.models.config.initialize_config(session, tid, mode)[source]
backend.globaleaks.models.config.add_new_lang(session, tid, lang, appdata_dict)[source]
backend.globaleaks.models.config.update_defaults(session, tid, appdata)[source]