def do_GET_conditions(self) -> dict[str, object]:
"""Show all Conditions."""
pattern = self._params.get_str('pattern')
def do_GET_conditions(self) -> dict[str, object]:
"""Show all Conditions."""
pattern = self._params.get_str('pattern')
if sort_by == 'is_active':
conditions.sort(key=lambda c: c.is_active)
elif sort_by == '-is_active':
if sort_by == 'is_active':
conditions.sort(key=lambda c: c.is_active)
elif sort_by == '-is_active':
@_get_item(Process)
def do_GET_process(self, process: Process) -> dict[str, object]:
"""Show Process of ?id=."""
@_get_item(Process)
def do_GET_process(self, process: Process) -> dict[str, object]:
"""Show Process of ?id=."""
title_64 = self._params.get_str('title_b64')
if title_64:
title = b64decode(title_64.encode()).decode()
process.title.set(title)
owners = process.used_as_step_by(self.conn)
title_64 = self._params.get_str('title_b64')
if title_64:
title = b64decode(title_64.encode()).decode()
process.title.set(title)
owners = process.used_as_step_by(self.conn)
preset_top_step = process_id
return {'process': process, 'is_new': process.id_ is None,
'preset_top_step': preset_top_step,
preset_top_step = process_id
return {'process': process, 'is_new': process.id_ is None,
'preset_top_step': preset_top_step,
def do_GET_processes(self) -> dict[str, object]:
"""Show all Processes."""
pattern = self._params.get_str('pattern')
def do_GET_processes(self) -> dict[str, object]:
"""Show all Processes."""
pattern = self._params.get_str('pattern')