Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)