Chromium Code Reviews| Index: appengine/findit/handlers/flake/flake_dashboard.py |
| diff --git a/appengine/findit/handlers/flake/flake_dashboard.py b/appengine/findit/handlers/flake/flake_dashboard.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b65d1d18842b5b11487bdcd1e20cebaf1c1e77bd |
| --- /dev/null |
| +++ b/appengine/findit/handlers/flake/flake_dashboard.py |
| @@ -0,0 +1,24 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +from common.base_handler import BaseHandler |
| +from common.base_handler import Permission |
| +from model.flake.master_flake_analysis import MasterFlakeAnalysis |
| + |
| + |
| +class FlakeDashboard(BaseHandler): |
| + PERMISSION_LEVEL = Permission.CORP_USER |
| + |
| + def HandleGet(self): |
| + # Get input parameters. |
|
lijeffrey
2016/07/29 00:22:56
what's this Get input parameters about? is this su
caiw
2016/07/29 23:20:51
oops this was all left over from a copy paste
|
| + # pylint: disable=W0612 |
| + |
| + master_flake_analyses = MasterFlakeAnalysis.query() |
| + data = {} |
|
lijeffrey
2016/07/29 00:22:55
nit: you can make this a 1 liner
data = {
'ma
caiw
2016/07/29 23:20:51
Done.
|
| + data['master_flake_analyses'] = master_flake_analyses |
| + |
| + return { |
| + 'template': 'flake/dashboard.html', |
| + 'data': data |
| + } |