backend.globaleaks.handlers.site

Module Contents

Classes

SiteCollection Handler responsible of publishing the list of available tenants

Functions

serialize_site(session, tenant) Transaction serializing the tenant descriptor
get_site_list(session) Transaction return the list of the active tenants
backend.globaleaks.handlers.site.serialize_site(session, tenant)[source]

Transaction serializing the tenant descriptor

Parameters:
  • session – An ORM session
  • tenant – The tenant model
Returns:

A serialization of the provided model

backend.globaleaks.handlers.site.get_site_list(session)[source]

Transaction return the list of the active tenants

Parameters:session – A ORM session
Returns:The list of active tenants
class backend.globaleaks.handlers.site.SiteCollection[source]

Bases: globaleaks.handlers.base.BaseHandler

Handler responsible of publishing the list of available tenants

check_roles = none[source]
root_tenant_only = True[source]
get(self)[source]

Return the list of registered tenants