return {'process': process, 'is_new': process.id_ is None,
'steps': process.get_steps(self.conn),
return {'process': process, 'is_new': process.id_ is None,
'steps': process.get_steps(self.conn),
'n_todos': len(Todo.by_process_id(self.conn, process.id_)),
'process_candidates': Process.all(self.conn),
'condition_candidates': Condition.all(self.conn)}
'n_todos': len(Todo.by_process_id(self.conn, process.id_)),
'process_candidates': Process.all(self.conn),
'condition_candidates': Condition.all(self.conn)}
process.set_owners(self.conn, self.form_data.get_all_int('step_of'))
if new_process_title:
title_b64_encoded = b64encode(new_process_title.encode()).decode()
process.set_owners(self.conn, self.form_data.get_all_int('step_of'))
if new_process_title:
title_b64_encoded = b64encode(new_process_title.encode()).decode()