Markdown for post. Rough CSS.
[TownSquare.git] / townsquare / lib / app_globals.py
blobeb56dd676fb92760d3922e67095599de03785551
2 from fma import MongoDB
4 """The application's Globals object"""
6 class Globals(object):
8 """Globals acts as a container for objects available throughout the
9 life of the application
11 """
13 def __init__(self):
14 """One instance of Globals is created during application
15 initialization and is available during requests via the
16 'app_globals' variable
18 """
20 #TODO: connection failure handling. re-connection procedure.
21 self.db = MongoDB('townsquare','','','127.0.0.1',27017)