empd_admin.webapp module

Classes

CommandHookHandler(application, request, …)

MainHandler(application, request, **kwargs)

PushedMasterHookHandler(application, …)

TestHookHandler(application, request, **kwargs)

VerificationHandler(application, request, …)

Handler to verify requests through tokens

ViewerHookHandler(application, request, **kwargs)

ViewerIssuesHandler(application, request, …)

A handler for issues submitted through the EMPD viewer

Functions

create_webapp()

main()

send_verfication_mail(token, what, subject, …)

verify_recaptcha(recaptcha_token, action)

verify_request(signature, body)

class empd_admin.webapp.CommandHookHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Methods

post()

post()
class empd_admin.webapp.MainHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Methods

get()

set_default_headers()

Override this to set HTTP headers at the beginning of the request.

get()
set_default_headers()

Override this to set HTTP headers at the beginning of the request.

For example, this is the place to set a custom Server header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.

class empd_admin.webapp.PushedMasterHookHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Methods

post()

post()
class empd_admin.webapp.TestHookHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Methods

post()

post()
class empd_admin.webapp.VerificationHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Handler to verify requests through tokens

Methods

get()

get()
class empd_admin.webapp.ViewerHookHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

Methods

post()

set_default_headers()

Override this to set HTTP headers at the beginning of the request.

post()
set_default_headers()

Override this to set HTTP headers at the beginning of the request.

For example, this is the place to set a custom Server header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.

class empd_admin.webapp.ViewerIssuesHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)

Bases: tornado.web.RequestHandler

A handler for issues submitted through the EMPD viewer

Methods

post()

set_default_headers()

Override this to set HTTP headers at the beginning of the request.

post()
set_default_headers()

Override this to set HTTP headers at the beginning of the request.

For example, this is the place to set a custom Server header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.

empd_admin.webapp.create_webapp()
empd_admin.webapp.main()
empd_admin.webapp.send_verfication_mail(token, what, subject, msg, recipient)
empd_admin.webapp.verify_recaptcha(recaptcha_token, action)
empd_admin.webapp.verify_request(signature, body)