vigigraph / app_cfg.py @ 56b77667
History | View | Annotate | Download (1.69 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
# vim: set fileencoding=utf-8 sw=4 ts=4 et :
|
3 |
# Copyright (C) 2011-2020 CS-SI
|
4 |
# License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
|
5 |
|
6 |
"""
|
7 |
Global configuration file for TG2-specific settings in vigigraph.
|
8 |
|
9 |
This file complements development/deployment.ini.
|
10 |
|
11 |
Please note that **all the argument values are strings**. If you want to
|
12 |
convert them into boolean, for example, you should use the
|
13 |
:func:`paste.deploy.converters.asbool` function, as in::
|
14 |
|
15 |
from paste.deploy.converters import asbool
|
16 |
setting = asbool(global_conf.get('the_setting'))
|
17 |
|
18 |
"""
|
19 |
|
20 |
|
21 |
import vigigraph |
22 |
from vigilo.turbogears import VigiloAppConfig |
23 |
from vigigraph.lib import app_globals # pylint: disable-msg=W0611 |
24 |
# W0611: Unused import: imports nécessaires pour le fonctionnement
|
25 |
|
26 |
base_config = VigiloAppConfig('VigiGraph')
|
27 |
base_config.package = vigigraph |
28 |
|
29 |
base_config["external_links"] = [
|
30 |
{ |
31 |
'label': 'Alarms', |
32 |
'image': 'images/preferences-system-windows.png', |
33 |
'tooltip': 'Display alarms for the selected host', |
34 |
'uri': '../vigiboard/?host={host}', |
35 |
'sameWindow': True, |
36 |
}, |
37 |
{ |
38 |
'label': 'Nagios page', |
39 |
'image': 'images/nagios-16.png', |
40 |
'tooltip': 'Display Nagios page for the selected host', |
41 |
'uri': 'nagios/{host}/cgi-bin/status.cgi?host={host}&style=detail&supNav=1', |
42 |
'sameWindow': True, |
43 |
}, |
44 |
{ |
45 |
'label': 'Metrology page', |
46 |
'image': 'images/preferences-system-windows.png', |
47 |
'tooltip': 'Display a page with all the graphs for the selected host', |
48 |
'uri': 'rpc/fullHostPage?host={host}', |
49 |
'sameWindow': True, |
50 |
}, |
51 |
] |
52 |
|
53 |
# Extensions (Entreprise ou spécifique projet)
|
54 |
base_config["extensions"] = ()
|