assert process.id_ is not None
for name in ('conditions', 'blockers', 'enables', 'disables'):
table = f'process_{name}'
assert process.id_ is not None
for name in ('conditions', 'blockers', 'enables', 'disables'):
table = f'process_{name}'
for c_id in db_conn.column_where(table, 'condition',
'process', process.id_):
target = getattr(process, name)
for c_id in db_conn.column_where(table, 'condition',
'process', process.id_):
target = getattr(process, name)
top_owner = external_owner or self
for step in [s for s in self.explicit_steps
if s.parent_step_id is None]:
top_owner = external_owner or self
for step in [s for s in self.explicit_steps
if s.parent_step_id is None]:
new_node = make_node(step, step in top_owner.suppressed_steps)
step_nodes += [new_node]
for step_node in step_nodes:
new_node = make_node(step, step in top_owner.suppressed_steps)
step_nodes += [new_node]
for step_node in step_nodes:
# NB: separate the collection of steps to save/remove from the action
# because the latter may modify the collection / self.explicit_steps
to_remove = []
# NB: separate the collection of steps to save/remove from the action
# because the latter may modify the collection / self.explicit_steps
to_remove = []