vigiboard / vigiboard / lib / app_globals.py @ 2bcebf54
History | View | Annotate | Download (1.21 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
################################################################################
|
3 |
#
|
4 |
# Copyright (C) 2007-2016 CS-SI
|
5 |
#
|
6 |
# This program is free software; you can redistribute it and/or modify
|
7 |
# it under the terms of the GNU General Public License version 2 as
|
8 |
# published by the Free Software Foundation.
|
9 |
#
|
10 |
# This program is distributed in the hope that it will be useful,
|
11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
# GNU General Public License for more details.
|
14 |
#
|
15 |
# You should have received a copy of the GNU General Public License
|
16 |
# along with this program; if not, write to the Free Software
|
17 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
18 |
################################################################################
|
19 |
|
20 |
"""The application's Globals object"""
|
21 |
|
22 |
__all__ = ['Globals']
|
23 |
|
24 |
|
25 |
class Globals(object): |
26 |
"""Container for objects available throughout the life of the application.
|
27 |
|
28 |
One instance of Globals is created during application initialization and
|
29 |
is available during requests via the 'app_globals' variable.
|
30 |
|
31 |
"""
|
32 |
|
33 |
def __init__(self): |
34 |
"""Do nothing, by default."""
|
35 |
pass
|