aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/globals.py
blob: 59a9455890516503390b95ff1d5d0e6e01f9b82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
In some places, we need to access the database, public_store, queue_store
"""

#############################
# General mediagoblin globals
#############################

# mongokit.Connection
db_connection = None

# mongokit.Connection
database = None

# should be the same as the 
public_store = None
queue_store = None


def setup_globals(**kwargs):
    from mediagoblin import globals as mg_globals

    for key, value in kwargs.iteritems():
        setattr(mg_globals, key, value)