def workflow_management() -> dict: return dict( compare_logs_form=CompareLogsForm(request.form), fields=workflow_table_properties, workflows=serialize("Workflow"), workflow_creation_form=JobForm(request.form), )
def service_management() -> dict: return dict( compare_logs_form=CompareLogsForm(request.form), fields=service_table_properties, service_form=JobForm(request.form), services_classes=list(service_classes), services=serialize("Service"), )
def workflow_builder(): workflow = fetch('Workflow', id=session.get('workflow', None)) return dict(workflow=workflow.serialized if workflow else None, add_job_form=AddJobForm(request.form), workflow_builder_form=WorkflowBuilderForm(request.form), workflow_creation_form=JobForm(request.form), compare_logs_form=CompareLogsForm(request.form), service_form=JobForm(request.form), services_classes=list(service_classes))
def workflow_management(): workflow_creation_form = WorkflowForm(request.form) workflow_creation_form.devices.choices = Device.choices() workflow_creation_form.pools.choices = Pool.choices() return render_template( 'workflow_management.html', compare_logs_form=CompareLogsForm(request.form), names=pretty_names, fields=workflow_table_properties, property_types={k: str(v) for k, v in property_types.items()}, workflows=Workflow.serialize(), workflow_creation_form=workflow_creation_form)
def service_management(): service_form = JobForm(request.form) service_form.devices.choices = Device.choices() service_form.pools.choices = Pool.choices() return render_template( 'service_management.html', compare_logs_form=CompareLogsForm(request.form), fields=service_table_properties, names=pretty_names, property_types={k: str(v) for k, v in property_types.items()}, service_form=service_form, services_classes=list(service_classes), services=Service.serialize())
def workflow_builder(): add_job_form = AddJobForm(request.form) add_job_form.job.choices = Job.choices() workflow_builder_form = WorkflowBuilderForm(request.form) workflow_builder_form.workflow.choices = Workflow.choices() service_form = JobForm(request.form) service_form.devices.choices = Device.choices() service_form.pools.choices = Pool.choices() return render_template( 'workflow_builder.html', workflow=session.get('workflow', None), add_job_form=add_job_form, workflow_builder_form=workflow_builder_form, compare_logs_form=CompareLogsForm(request.form), names=pretty_names, property_types={k: str(v) for k, v in property_types.items()}, service_form=service_form, services_classes=list(service_classes))
def detached_logs(id): return {'job': id, 'compare_logs_form': CompareLogsForm(request.form)}
def detached_logs(id: int) -> dict: return {"job": id, "compare_logs_form": CompareLogsForm(request.form)}