views¶
The web part of jobbergate.
-
jobbergate.views.
application
(application_name)¶ route for /app/<application_name>
Parameters: application_name – Name of application Renders base questions for <application_name> and lets users answer them.
-
jobbergate.views.
applications
()¶ route for /apps/
Lets users select from available applications
-
jobbergate.views.
form_generator
(application_name, templates, workflow)¶ Generates form from workflow function
Parameters: - application_name (string) – Name of the application
- templates (list[string]) – List of availabe templates
- workflow – workflow function
Returns: A populated QuestionaryForm
Return type: FlaskForm
-
jobbergate.views.
home
()¶ route for /
Clears out session data and renders home.html template
-
jobbergate.views.
parse_field
(form, field, render_kw=None)¶ Parses the question field and populates a FlaskForm with the fields.
Parameters: - form (FlaskForm) – The form to populate
- field (jobbergate.appform.QuestionBase) – The question to parse
- render_kw – extra attributes for the field
Returns: Form with all the fields
Return type: FlaskForm
-
jobbergate.views.
renderworkflow
(application_name, workflow)¶ route for /workflow/<application_name>/<workflow>
Parameters: - application_name – application name
- workflow – workflow name
Renders <workflow> for <application_name> and lets user answer questions.