backend.globaleaks.handlers.admin.redirect

Module Contents

Functions

get_redirect_list(session, tid) Transaction for fetching the full list of redirects configured on a tenant
update_redirects_state(tid) Function to fetch and configure the list of redirects configured on a tenant
create(session, tid, request) Transaction for registering the creation of a redirect for a tenant
backend.globaleaks.handlers.admin.redirect.get_redirect_list(session, tid)[source]

Transaction for fetching the full list of redirects configured on a tenant

Parameters:
  • session – An ORM session
  • tid – The tenant ID
Returns:

The list of redirects configured on a tenant

backend.globaleaks.handlers.admin.redirect.update_redirects_state(tid)[source]

Function to fetch and configure the list of redirects configured on a tenant

Parameters:tid – The tenant for which configure the redirects
backend.globaleaks.handlers.admin.redirect.create(session, tid, request)[source]

Transaction for registering the creation of a redirect for a tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • request – The request data
Returns:

The descriptor of the registered redirect

class backend.globaleaks.handlers.admin.redirect.RedirectCollection[source]

Bases: globaleaks.handlers.base.BaseHandler

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

Return the list of registered redirects

post(self)[source]

Create a new redirect

class backend.globaleaks.handlers.admin.redirect.RedirectInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
invalidate_cache = True[source]
delete(self, redirect_id)[source]

Delete the specified redirect.