PYTHON   22

app_globals.py

Guest on 3rd June 2021 05:52:55 AM

  1. """The application's Globals object"""
  2. from pylons import config
  3.  
  4. class Globals(object):
  5.     """Globals acts as a container for objects available throughout the
  6.    life of the application
  7.    """
  8.  
  9.     def __init__(self):
  10.         """One instance of Globals is created during application
  11.        initialization and is available during requests via the 'g'
  12.        variable
  13.        """
  14.         pass

Raw Paste


Login or Register to edit or fork this paste. It's free.