dokomoforms.handlers.user package

Submodules

dokomoforms.handlers.user.admin module

Admin view handlers.

class dokomoforms.handlers.user.admin.AdminHomepageHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for the main Administrator interface.

get()

GET the admin interface.

class dokomoforms.handlers.user.admin.ViewSubmissionHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for viewing a submission.

get(submission_id: str)

GET the visualization page.

class dokomoforms.handlers.user.admin.ViewSurveyDataHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for getting a single survey’s data page.

get(survey_id: str)

GET the data page.

class dokomoforms.handlers.user.admin.ViewSurveyHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for getting a single survey’s admin page.

get(survey_id: str)

GET the admin page for a survey.

class dokomoforms.handlers.user.admin.ViewUserAdminHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for getting the user administration admin page.

get()

GET the user admin page.

dokomoforms.handlers.user.enumerate module

Survey view handler.

class dokomoforms.handlers.user.enumerate.Enumerate(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

View and submit to a survey.

get(survey_id)

GET the main survey view.

Render survey page for given survey id, embed JSON into to template so browser can cache survey in HTML.

Raises tornado http error.

@survey_id: Requested survey id.

class dokomoforms.handlers.user.enumerate.EnumerateHomepageHandler(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

The endpoint for the main Enumerator interface.

get()

GET the enumerate interface.

class dokomoforms.handlers.user.enumerate.EnumerateTitle(application, request, **kwargs)[source]

Bases: dokomoforms.handlers.util.BaseHandler

View and submit to a survey identified by title.

get(title)

GET the main survey view.

Render survey page for given survey title, embed JSON into to template so browser can cache survey in HTML.

Checks for Survey.url_slug

Raises tornado http error.

Module contents

The handlers for view pages.