| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Configuraiton of ereporter2. | 5 """Configuraiton of ereporter2. |
| 6 | 6 |
| 7 To use, put the following lines in appengine_config.py: | 7 To use, put the following lines in appengine_config.py: |
| 8 components_ereporter2_RECIPIENTS_AUTH_GROUP = 'myproject-ereporter-reports' | 8 components_ereporter2_RECIPIENTS_AUTH_GROUP = 'myproject-ereporter-reports' |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from google.appengine.api import lib_config | 11 from google.appengine.api import lib_config |
| 12 | 12 |
| 13 | 13 |
| 14 class Config(object): | 14 class Config(object): |
| 15 # Name of a group that lists users that receive ereporter2 reports. | 15 # Name of a group that lists users that receive ereporter2 reports. |
| 16 RECIPIENTS_AUTH_GROUP = 'ereporter2-reports' | 16 RECIPIENTS_AUTH_GROUP = 'ereporter2-reports' |
| 17 | 17 |
| 18 # Group that can view all ereporter2 reports without being a general auth | 18 # Group that can view all ereporter2 reports without being a general auth |
| 19 # admin. It can also silence reports. | 19 # admin. It can also silence reports. |
| 20 VIEWERS_AUTH_GROUP = 'ereporter2-viewers' | 20 VIEWERS_AUTH_GROUP = 'ereporter2-viewers' |
| 21 | 21 |
| 22 | 22 |
| 23 config = lib_config.register('components_ereporter2', Config.__dict__) | 23 config = lib_config.register('components_ereporter2', Config.__dict__) |
| OLD | NEW |