brie-aurore/Brie/brie/lib/app_globals.py

21 lines
486 B
Python

# -*- coding: utf-8 -*-
import brie.controllers.scheduler as scheduler
"""The application's Globals object"""
__all__ = ['Globals']
class Globals(object):
"""Container for objects available throughout the life of the application.
One instance of Globals is created during application initialization and
is available during requests via the 'app_globals' variable.
"""
def __init__(self):
"""Do nothing, by default."""
scheduler.sched.start()