def get_page(self, suffix):
    try:
        return int(self.GET['page%s' % suffix])
    except (KeyError, ValueError, TypeError):
        return 1
Creates the table of contents from the headline list
dataset/ETHPy150Open amarandon/smeuhsocial/apps/pagination/middleware.py/get_page--crossover with--dataset/ETHPy150Open phodal/awesome-iot/toc.py/create_toc