2 In some places, we need to access the database, public_store, queue_store
9 #############################
10 # General mediagoblin globals
11 #############################
19 # should be the same as the
23 # Dump mail to stdout instead of sending it:
24 email_debug_mode
= False
26 # Address for sending out mails
27 email_sender_address
= None
30 workbench_manager
= None
33 translations
= gettext
.find(
35 pkg_resources
.resource_filename(
36 'mediagoblin', 'translations'), ['en'])
38 # app and global config objects
42 # The actual app object
46 def setup_globals(**kwargs
):
48 Sets up a bunch of globals in this module.
50 Takes the globals to setup as keyword arguments. If globals are
51 specified that aren't set as variables above, then throw an error.
53 from mediagoblin
import mg_globals
55 for key
, value
in kwargs
.iteritems():
56 if not hasattr(mg_globals
, key
):
57 raise AssertionError("Global %s not known" % key
)
58 setattr(mg_globals
, key
, value
)