vigigraph / app_cfg.py @ 1090d70c
History | View | Annotate | Download (1.47 KB)
1 | 0931fc44 | Thomas BURGUIERE | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 98c1bcf7 | Thomas BURGUIERE | # vim: set fileencoding=utf-8 sw=4 ts=4 et :
|
3 | 6df90afb | Francois POIROTTE | # Copyright (C) 2011-2016 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 | f0ec26ba | Aurelien BOMPARD | from vigigraph.lib import app_globals, helpers # pylint: disable-msg=W0611 |
24 | # 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 | 'label': 'Nagios page', |
||
32 | 'image': 'images/nagios-16.png', |
||
33 | 'tooltip': 'Display Nagios page for the selected host', |
||
34 | 'uri': 'nagios/{host}/cgi-bin/status.cgi?host={host}&style=detail&supNav=1', |
||
35 | 'sameWindow': True, |
||
36 | }, |
||
37 | { |
||
38 | 'label': 'Metrology page', |
||
39 | 'image': 'images/preferences-system-windows.png', |
||
40 | 'tooltip': 'Display a page with all the graphs for the selected host', |
||
41 | 'uri': 'rpc/fullHostPage?host={host}', |
||
42 | 'sameWindow': True, |
||
43 | }, |
||
44 | ] |
||
45 | |||
46 | 3fc1ed9a | Aurelien BOMPARD | # Extensions (Entreprise ou spécifique projet)
|
47 | base_config["extensions"] = () |