Modified logo to change on :hover
[mediagoblin.git] / mediagoblin / globals.py
1 """
2 In some places, we need to access the database, public_store, queue_store
3 """
4
5 import gettext
6 import pkg_resources
7
8 #############################
9 # General mediagoblin globals
10 #############################
11
12 # mongokit.Connection
13 db_connection = None
14
15 # mongokit.Connection
16 database = None
17
18 # should be the same as the
19 public_store = None
20 queue_store = None
21
22 # gettext
23 translations = gettext.find(
24 'mediagoblin',
25 pkg_resources.resource_filename(
26 'mediagoblin', 'translations'), ['en'])
27
28
29 def setup_globals(**kwargs):
30 from mediagoblin import globals as mg_globals
31
32 for key, value in kwargs.iteritems():
33 setattr(mg_globals, key, value)