mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-24 05:38:25 +00:00
category back to category_id
This commit is contained in:
parent
0a4f63f048
commit
dfaf145bd1
@ -27,7 +27,7 @@ class ExampleDataLoader:
|
|||||||
session.flush()
|
session.flush()
|
||||||
|
|
||||||
def create_spec(self, id, display_name="", description="", filepath=None, master_spec=False,
|
def create_spec(self, id, display_name="", description="", filepath=None, master_spec=False,
|
||||||
category=None, display_order=0, from_tests=False, standalone=False, library=False):
|
category_id=None, display_order=0, from_tests=False, standalone=False, library=False):
|
||||||
"""Assumes that a directory exists in static/bpmn with the same name as the given id.
|
"""Assumes that a directory exists in static/bpmn with the same name as the given id.
|
||||||
further assumes that the [id].bpmn is the primary file for the workflow.
|
further assumes that the [id].bpmn is the primary file for the workflow.
|
||||||
returns an array of data models to be added to the database."""
|
returns an array of data models to be added to the database."""
|
||||||
@ -35,7 +35,7 @@ class ExampleDataLoader:
|
|||||||
spec = WorkflowSpecInfo(id=id,
|
spec = WorkflowSpecInfo(id=id,
|
||||||
display_name=display_name,
|
display_name=display_name,
|
||||||
description=description,
|
description=description,
|
||||||
category_id=category.id,
|
category_id=category_id,
|
||||||
display_order=display_order,
|
display_order=display_order,
|
||||||
is_master_spec=master_spec,
|
is_master_spec=master_spec,
|
||||||
standalone=standalone,
|
standalone=standalone,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user