Gets the parents of this catalog.

        return: (osid.cataloging.CatalogNodeList) - the parents of the
                ``id``
        *compliance: mandatory -- This method must be implemented.*
519218
def get_parent_catalog_nodes(self):
        
        parent_catalog_nodes = []
        for node in self._my_map['parentNodes']:
            parent_catalog_nodes.append(CatalogNode(
                node._my_map,
                runtime=self._runtime,
                proxy=self._proxy,
                lookup_session=self._lookup_session))
        return CatalogNodeList(parent_catalog_nodes)
858127
def parents(self):
        
        return [self.repository.get_changeset(parent.rev())
                for parent in self._ctx.parents() if parent.rev() >= 0]
254696
def parents(self):
        
        return TermList(unique_everseen(
            y for x in self for y in x.parents
        ))
538260
def parents(self, alias, bank_id):
        
        return self._root + self._safe_alias(alias) + '/parent/ids/' + bank_id
38775
def parent(self):
        
        if self._has_parent is None:
            _parent = self._ctx.backend.get_parent(self._ctx.dev)
            self._has_parent = _parent is not None
            if self._has_parent:
                self._parent = Device(_parent, self._ctx.backend)
            else:
                self._parent = None
        return self._parent
974486
def parent(self):
        
        try:
            return Resource(self['parent_type'], uuid=self['parent_uuid'], check=True)
        except KeyError:
            raise ResourceMissing('%s has no parent resource' % self)
212803
def get_child_ids(self, parent_alias):
        
        self._cache_init()
        return self._cache_get_entry(self.CACHE_NAME_PARENTS, parent_alias, [])
1293595
def get_ancestors(self):
        
        ancestors = list(self.get_parents())
        ancestor_unique_attributes = set([(a.__class__, a.id) for a in ancestors])
        ancestors_with_parents = [a for a in ancestors if isinstance(a, DescendantMixin)]
        for ancestor in ancestors_with_parents:
            for parent in ancestor.get_ancestors():
                if (parent.__class__, parent.id) not in ancestor_unique_attributes:
                    ancestors.append(parent)
        return ancestors
717825
def parent(self):
    
    pairs = self.__pairs
    if len(pairs) <= 1:
      return None
    return Key(pairs=pairs[:-1], app=self.__app, namespace=self.__namespace)
305922
def get_parents_for(self, child_ids):
        
        self._cache_init()
        parent_candidates = []
        for parent, children in self._cache_get_entry(self.CACHE_NAME_PARENTS).items():
            if set(children).intersection(child_ids):
                parent_candidates.append(parent)
        return set(parent_candidates)
375861
def get_families_by_ids(self, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.BinLookupSession.get_bins_by_ids
        catalogs = self._get_provider_session('family_lookup_session').get_families_by_ids(*args, **kwargs)
        cat_list = []
        for cat in catalogs:
            cat_list.append(Family(self._provider_manager, cat, self._runtime, self._proxy))
        return FamilyList(cat_list)
37236
def parent(self):
        """"""
        if self._parent is None:
            if self.pid is not None:
                self._parent = self.api._load_directory(self.pid)
        return self._parent
982917
def parents( self, node ):
        """"""
        if 'index' in node:
            index = node['index']()
            parents = list(meliaeloader.children( node, index, 'parents' ))
            return parents 
        return []
326761
def parents(self):
        # type: () -> List[CommitDetails]
        
        if self._parents is None:
            self._parents = [CommitDetails.get(x) for x in self.parents_sha1]

        return self._parents
1283980
def get_immediate_parents(self):
        
        ownership = Ownership.objects.filter(child=self)
        parents = Company.objects.filter(parent__in=ownership).distinct()
        return parents
88054
def get_parent_objects(self, context):
        
        parent_object = api.get_parent(context)
        portal_type = api.get_portal_type(context)
        return parent_object.objectValues(portal_type)
356712
def get_parents(obj, **kwargs):
    """"""
    num_of_mro = kwargs.get("num_of_mro", 5)

    mro = getmro(obj.__class__)
    mro_string = ', '.join([extract_type(str(t)) for t in mro[:num_of_mro]])

    return "Hierarchy: {}".format(mro_string)