(self, cat_path, title=None)
:param cat_path: A list or tuple of the path to this category
        :param title: optional - name of text.  If present tries to return a text
        :return: TocNode
:param cat_path: A list or tuple of the path to this category
        :param title: optional - name of text.  If present tries to return a text
        :return: TocNode
: param cat_path : A list or tuple of the path to this category : param title : optional - name of text . If present tries to return a text : return : TocNode
def lookup(self, cat_path, title=None):
        """
        :param cat_path: A list or tuple of the path to this category
        :param title: optional - name of text.  If present tries to return a text
        :return: TocNode
        """
        path = tuple(cat_path)
        if title is not None:
            path += tuple([title])
        try:
            return self._path_hash[path]
        except KeyError:
            # todo: remove this try, after getting rid of the "Other" cat.
            try:
                return self._path_hash[tuple(["Other"]) + path]
            except KeyError:
                return None
def lookup ( self , cat_path , title = None ) : path = tuple ( cat_path ) if title is not None : path += tuple ( [ title ] ) try : return self . _path_hash [ path ] except KeyError : # todo: remove this try, after getting rid of the "Other" cat. try : return self . _path_hash [ tuple ( [ "Other" ] ) + path ] except KeyError : return None