예제 #1
0
파일: routes.py 프로젝트: pkropf/eNMS
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),
    )
예제 #2
0
파일: routes.py 프로젝트: pkropf/eNMS
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"),
    )
예제 #3
0
파일: routes.py 프로젝트: usafak/eNMS
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))
예제 #4
0
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)
예제 #5
0
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())
예제 #6
0
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))
예제 #7
0
파일: routes.py 프로젝트: usafak/eNMS
def detached_logs(id):
    return {'job': id, 'compare_logs_form': CompareLogsForm(request.form)}
예제 #8
0
파일: routes.py 프로젝트: pkropf/eNMS
def detached_logs(id: int) -> dict:
    return {"job": id, "compare_logs_form": CompareLogsForm(request.form)}