backend.globaleaks.handlers.admin.step

Module Contents

Functions

db_create_step(session, tid, request, language) Transaction for creating a step
db_update_step(session, tid, step_id, request, language) Transaction for updating a step
db_delete_step(session, tid, step_id)
order_elements(session, handler, req_args, *args, **kwargs)
backend.globaleaks.handlers.admin.step.db_create_step(session, tid, request, language)[source]

Transaction for creating a step

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • request – The request data
  • session – the session on which perform queries.
  • language – the language of the specified steps.
backend.globaleaks.handlers.admin.step.db_update_step(session, tid, step_id, request, language)[source]

Transaction for updating a step

Parameters:
  • session – An ORM session
  • tid – The tenant ID
  • step_id – the step_id of the step to update
  • request – the step definition dict
  • language – the language of the step definition dict
Returns:

a serialization of the object

backend.globaleaks.handlers.admin.step.db_delete_step(session, tid, step_id)[source]
backend.globaleaks.handlers.admin.step.order_elements(session, handler, req_args, *args, **kwargs)[source]
class backend.globaleaks.handlers.admin.step.StepCollection[source]

Bases: globaleaks.handlers.operation.OperationHandler

check_roles = admin[source]
cache_resource = True[source]
invalidate_cache = True[source]
post(self)[source]
operation_descriptors(self)[source]
class backend.globaleaks.handlers.admin.step.StepInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

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