Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | # 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. |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 4 | |
| 5 | """A class to display the an error page for excessive activity. |
| 6 | |
| 7 | This page is shown when the user performs a given type of action |
| 8 | too many times in a 24-hour period or exceeds a lifetime limit. |
| 9 | """ |
| 10 | from __future__ import print_function |
| 11 | from __future__ import division |
| 12 | from __future__ import absolute_import |
| 13 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 14 | from framework import servlet |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 15 | |
| 16 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 17 | class ExcessiveActivity(servlet.Servlet): |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 18 | """ExcessiveActivity page shows an error message.""" |
| 19 | |
| 20 | _PAGE_TEMPLATE = 'framework/excessive-activity-page.ezt' |
| 21 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame] | 22 | # pylint: disable=unused-argument |
| 23 | def GetExcessiveActivity(self, **kwargs): |
Adrià Vilanova Martínez | 9f9ade5 | 2022-10-10 23:20:11 +0200 | [diff] [blame] | 24 | return self.handler(**kwargs) |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame] | 25 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 26 | def GatherPageData(self, _mr): |
| 27 | """Build up a dictionary of data values to use when rendering the page.""" |
| 28 | return {} |