backend.globaleaks.handlers.signup

Module Contents

Classes

Signup Signup handler responsible of registration
SignupActivation Signup handler responsible of activation

Functions

serialize_signup(signup) Transaction serializing the signup descriptor
signup(session, request, language) Transact handling the registration of a new signup
signup_activation(session, token, hostname, language) Transaction registering the activation of a platform registered via signup
backend.globaleaks.handlers.signup.serialize_signup(signup)[source]

Transaction serializing the signup descriptor

Parameters:signup – A signup model
Returns:A serialization of the provided model
backend.globaleaks.handlers.signup.signup(session, request, language)[source]

Transact handling the registration of a new signup

Parameters:
  • session – An ORM session
  • request – A user request
  • language – A language of the request
backend.globaleaks.handlers.signup.signup_activation(session, token, hostname, language)[source]

Transaction registering the activation of a platform registered via signup

Parameters:
  • session – An ORM session
  • token – A activation token
  • language – A language of the request
class backend.globaleaks.handlers.signup.Signup[source]

Bases: globaleaks.handlers.base.BaseHandler

Signup handler responsible of registration

check_roles = none[source]
invalidate_cache = False[source]
root_tenant_only = True[source]
post(self)[source]
class backend.globaleaks.handlers.signup.SignupActivation[source]

Bases: globaleaks.handlers.base.BaseHandler

Signup handler responsible of activation

check_roles = none[source]
invalidate_cache = False[source]
root_tenant_only = True[source]
refresh_connection_endpoints = True[source]
get(self, token)[source]