def itemToPage(self, item):

        page = ''
        if not hasattr(item, 'text'):
            return page
        page = item.text(0)
        parent = item.parent()
        while parent is not None:
            page = parent.text(0) + '/' + page
            parent = parent.parent()
        return page
get item hierarchy from item
dataset/ETHPy150Open ShadowKyogre/mikidown/mikidown/mikitree.py/MikiTree.itemToPage