backend.globaleaks.handlers.admin.tenant

Module Contents

Functions

serialize_tenant(session, tenant)
db_initialize_tenant_submission_statuses(session, tid) Transaction for initializing the submission statuses of a tenant
db_create(session, desc)
create(session, desc, *args, **kwargs)
db_get_tenant_list(session)
get_tenant_list(session)
get(session, tid)
update(session, tid, request)
backend.globaleaks.handlers.admin.tenant.serialize_tenant(session, tenant)[source]
backend.globaleaks.handlers.admin.tenant.db_initialize_tenant_submission_statuses(session, tid)[source]

Transaction for initializing the submission statuses of a tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
backend.globaleaks.handlers.admin.tenant.db_create(session, desc)[source]
backend.globaleaks.handlers.admin.tenant.create(session, desc, *args, **kwargs)[source]
backend.globaleaks.handlers.admin.tenant.db_get_tenant_list(session)[source]
backend.globaleaks.handlers.admin.tenant.get_tenant_list(session)[source]
backend.globaleaks.handlers.admin.tenant.get(session, tid)[source]
backend.globaleaks.handlers.admin.tenant.update(session, tid, request)[source]
class backend.globaleaks.handlers.admin.tenant.TenantCollection[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
root_tenant_only = True[source]
invalidate_cache = True[source]
refresh_connection_endpoints = True[source]
get(self)[source]

Return the list of registered tenants

post(self)[source]

Create a new tenant

class backend.globaleaks.handlers.admin.tenant.TenantInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
root_tenant_only = True[source]
invalidate_cache = True[source]
refresh_connection_endpoints = True[source]
get(self, tenant_id)[source]
put(self, tenant_id)[source]

Update the specified tenant.

delete(self, tenant_id)[source]

Delete the specified tenant.