##// END OF EJS Templates
Update LICENSE.md to include license information about Mousetrap.
Update LICENSE.md to include license information about Mousetrap.

File last commit:

r4116:ffd45b18 rhodecode-2.2.5-gpl
r4127:f8bb2cf6 rhodecode-2.2.5-gpl
Show More
app_globals.py
44 lines | 1.4 KiB | text/x-python | PythonLexer
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 # -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
rhodecode.lib.app_globals
~~~~~~~~~~~~~~~~~~~~~~~~~
The application's Globals object
:created_on: Oct 06, 2010
:author: marcink
:copyright: (c) 2013 RhodeCode GmbH.
:license: GPLv3, see LICENSE for more details.
"""
renamed project to rhodecode
r547
from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
pep8ify
r1307
renamed project to rhodecode
r547 class Globals(object):
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 """
Globals acts as a container for objects available throughout the
renamed project to rhodecode
r547 life of the application
"""
def __init__(self, config):
"""One instance of Globals is created during application
initialization and is available during requests via the
'app_globals' variable
"""
self.cache = CacheManager(**parse_cache_config_options(config))
self.available_permissions = None # propagated after init_model