blob: 5506de3e893dff27e7a625c24250b8210175887b [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6"""A class to display the an error page for excessive activity.
7
8This page is shown when the user performs a given type of action
9too many times in a 24-hour period or exceeds a lifetime limit.
10"""
11from __future__ import print_function
12from __future__ import division
13from __future__ import absolute_import
14
Adrià Vilanova Martínez9f9ade52022-10-10 23:20:11 +020015from framework import flaskservlet
Copybara854996b2021-09-07 19:36:02 +000016
17
Adrià Vilanova Martínez9f9ade52022-10-10 23:20:11 +020018class ExcessiveActivity(flaskservlet.FlaskServlet):
Copybara854996b2021-09-07 19:36:02 +000019 """ExcessiveActivity page shows an error message."""
20
21 _PAGE_TEMPLATE = 'framework/excessive-activity-page.ezt'
22
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020023 # pylint: disable=unused-argument
24 def GetExcessiveActivity(self, **kwargs):
Adrià Vilanova Martínez9f9ade52022-10-10 23:20:11 +020025 return self.handler(**kwargs)
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020026
Copybara854996b2021-09-07 19:36:02 +000027 def GatherPageData(self, _mr):
28 """Build up a dictionary of data values to use when rendering the page."""
29 return {}