def _get_page(self): try: return int(self.request.GET.get('page', '1')) except ValueError: raise ParseError('page must be an integer')