Exemple #1
0
def list_replication_rule_full_history(scope, name):
    """
    List the rule history of a DID.

    :param scope: The scope of the DID.
    :param name: The name of the DID.
    """
    return rule.list_rule_full_history(scope, name)
Exemple #2
0
def list_replication_rule_full_history(scope, name):
    """
    List the rule history of a DID.

    :param scope: The scope of the DID.
    :param name: The name of the DID.
    """
    scope = InternalScope(scope)
    rules = rule.list_rule_full_history(scope, name)
    for r in rules:
        yield api_update_return_dict(r)
Exemple #3
0
def list_replication_rule_full_history(scope, name, vo='def', session=None):
    """
    List the rule history of a DID.

    :param scope: The scope of the DID.
    :param name: The name of the DID.
    :param vo: The VO to act on.
    :param session: The database session in use.
    """
    scope = InternalScope(scope, vo=vo)
    rules = rule.list_rule_full_history(scope, name, session=session)
    for r in rules:
        yield api_update_return_dict(r, session=session)