app_globals.py 419B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. """The application's Globals object"""
  3. __all__ = ['Globals']
  4. class Globals(object):
  5. """Container for objects available throughout the life of the application.
  6. One instance of Globals is created during application initialization and
  7. is available during requests via the 'app_globals' variable.
  8. """
  9. def __init__(self):
  10. """Do nothing, by default."""
  11. pass