2008-10-05 17:23:54 +02:00
|
|
|
"""The application's Globals object"""
|
2008-10-06 00:32:59 +02:00
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
class Globals(object):
|
2009-03-08 23:52:49 +01:00
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
"""Globals acts as a container for objects available throughout the
|
|
|
|
life of the application
|
2009-03-08 23:52:49 +01:00
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
"""One instance of Globals is created during application
|
2009-03-08 23:52:49 +01:00
|
|
|
initialization and is available during requests via the
|
|
|
|
'app_globals' variable
|
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
"""
|