blob: 87477b81f713350dcee6ecdb03c0deb7e0f17867 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Copybara854996b2021-09-07 19:36:02 +00004
5"""A class to display the an error page for excessive activity.
6
7This page is shown when the user performs a given type of action
8too many times in a 24-hour period or exceeds a lifetime limit.
9"""
10from __future__ import print_function
11from __future__ import division
12from __future__ import absolute_import
13
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010014from framework import servlet
Copybara854996b2021-09-07 19:36:02 +000015
16
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010017class ExcessiveActivity(servlet.Servlet):
Copybara854996b2021-09-07 19:36:02 +000018 """ExcessiveActivity page shows an error message."""
19
20 _PAGE_TEMPLATE = 'framework/excessive-activity-page.ezt'
21
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020022 # pylint: disable=unused-argument
23 def GetExcessiveActivity(self, **kwargs):
Adrià Vilanova Martínez9f9ade52022-10-10 23:20:11 +020024 return self.handler(**kwargs)
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020025
Copybara854996b2021-09-07 19:36:02 +000026 def GatherPageData(self, _mr):
27 """Build up a dictionary of data values to use when rendering the page."""
28 return {}