vigigraph / app_cfg.py @ f3a7115e
History | View | Annotate | Download (1.69 KB)
1 | 0931fc44 | Thomas BURGUIERE | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 98c1bcf7 | Thomas BURGUIERE | # vim: set fileencoding=utf-8 sw=4 ts=4 et :
|
3 | 8b41a4ef | Francois POIROTTE | # Copyright (C) 2011-2019 CS-SI
|
4 | 3c678ec5 | Aurelien BOMPARD | # License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
|
5 | |||
6 | 0931fc44 | Thomas BURGUIERE | """
|
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 | 301d508e | Francois POIROTTE |
|
15 | 0931fc44 | Thomas BURGUIERE | from paste.deploy.converters import asbool
|
16 | setting = asbool(global_conf.get('the_setting'))
|
||
17 | 301d508e | Francois POIROTTE |
|
18 | 0931fc44 | Thomas BURGUIERE | """
|
19 | |||
20 | 8565f49f | Aurelien BOMPARD | |
21 | 0931fc44 | Thomas BURGUIERE | import vigigraph |
22 | 6c990475 | Francois POIROTTE | from vigilo.turbogears import VigiloAppConfig |
23 | 77b7746d | Francois POIROTTE | from vigigraph.lib import app_globals # pylint: disable-msg=W0611 |
24 | f0ec26ba | Aurelien BOMPARD | # W0611: Unused import: imports nécessaires pour le fonctionnement
|
25 | 0931fc44 | Thomas BURGUIERE | |
26 | 81385f33 | Francois POIROTTE | base_config = VigiloAppConfig('VigiGraph')
|
27 | 0931fc44 | Thomas BURGUIERE | base_config.package = vigigraph |
28 | 3fc1ed9a | Aurelien BOMPARD | |
29 | 71acc6fa | Francois POIROTTE | base_config["external_links"] = [
|
30 | { |
||
31 | 1b562924 | Francois POIROTTE | '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 | 71acc6fa | Francois POIROTTE | '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 | 3fc1ed9a | Aurelien BOMPARD | # Extensions (Entreprise ou spécifique projet)
|
54 | base_config["extensions"] = () |