def scope_list(scope, name=None, recursive=False): """ List data identifiers in a scope. :param scope: The scope name. :param name: The data identifier name. :param recursive: boolean, True or False. """ return did.scope_list(scope, name=name, recursive=recursive)
def scope_list(scope, name=None, recursive=False): """ List data identifiers in a scope. :param scope: The scope name. :param name: The data identifier name. :param recursive: boolean, True or False. """ scope = InternalScope(scope) dids = did.scope_list(scope, name=name, recursive=recursive) for d in dids: ret_did = deepcopy(d) ret_did['scope'] = ret_did['scope'].external if ret_did['parent'] is not None: ret_did['parent']['scope'] = ret_did['parent']['scope'].external yield ret_did
def scope_list(scope, name=None, recursive=False, vo='def', session=None): """ List data identifiers in a scope. :param scope: The scope name. :param name: The data identifier name. :param recursive: boolean, True or False. :param vo: The VO to act on. :param session: The database session in use. """ scope = InternalScope(scope, vo=vo) dids = did.scope_list(scope, name=name, recursive=recursive, session=session) for d in dids: ret_did = deepcopy(d) ret_did['scope'] = ret_did['scope'].external if ret_did['parent'] is not None: ret_did['parent']['scope'] = ret_did['parent']['scope'].external yield ret_did