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()[source]

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)[source]

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)[source]

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)[source]

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()[source]

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)[source]

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()[source]

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)[source]

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.