3d0ed61d33a5c58ee6eb66c79f679279bfbeb4fe
2 In some places, we need to access the database, public_store, queue_store
8 #############################
9 # General mediagoblin globals
10 #############################
18 # should be the same as the
22 # Dump mail to stdout instead of sending it:
23 email_debug_mode
= False
25 # Address for sending out mails
26 email_sender_address
= None
29 workbench_manager
= None
32 translations
= gettext
.find(
34 pkg_resources
.resource_filename(
35 'mediagoblin', 'translations'), ['en'])
38 def setup_globals(**kwargs
):
39 from mediagoblin
import mg_globals
41 for key
, value
in kwargs
.iteritems():
42 if not hasattr(mg_globals
, key
):
43 raise AssertionError("Global %s not known" % key
)
44 setattr(mg_globals
, key
, value
)