def validate_page_number(self, page_number):
        try:
            page_number = int(page_number)
        except __HOLE__:
            raise InvalidPage
        if page_number < 0 or page_number > self.pages - 1:
            raise InvalidPage
        return page_number
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/paginator.py/ObjectPaginator.validate_page_number