backend.globaleaks.handlers.admin.l10n

Module Contents

Functions

get(session, tid, lang) Transaction for retrieving the texts customization of a tenant
update(session, tid, lang, request) Transaction for updating the texts customizations of a tenant
backend.globaleaks.handlers.admin.l10n.get(session, tid, lang)[source]

Transaction for retrieving the texts customization of a tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • lang – The language to be used for the lookup
Returns:

The sequence of customizations

backend.globaleaks.handlers.admin.l10n.update(session, tid, lang, request)[source]

Transaction for updating the texts customizations of a tenant

Parameters:
  • session – An ORM session
  • tid – A tentant ID
  • lang – The language to be used for the update
  • request – The customization data
class backend.globaleaks.handlers.admin.l10n.AdminL10NHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
invalidate_cache = True[source]
get(self, lang)[source]
put(self, lang)[source]
delete(self, lang)[source]