def _remove_children(context: IPool, registry: Registry) -> None: child_names = [x for x in context.keys()] for child in child_names: context.remove(child, registry=registry)
def enabled_ordering(pool: IPool, registry: Registry, **kwargs): """Enabled ordering for `pool` children.""" initial_order = list(pool.keys()) if hasattr(pool, '__oid__'): # ease testing pool.set_order(initial_order, reorderable=True)