Merge remote branch 'remotes/elrond/idea/clean_celery_setup'
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 12 Jun 2011 14:16:12 +0000 (09:16 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 12 Jun 2011 14:16:12 +0000 (09:16 -0500)
Conflicts:
mediagoblin/celery_setup/from_celery.py

1  2 
mediagoblin/celery_setup/from_celery.py

index 5fa9ba7668689cf7a7823b5c92075fce3612178c,6fab59ca0d01fd9e74446b7d966e06112ee29394..71f93d766ab42034e0037e0621af9654cdf7c7f8
@@@ -23,13 -23,12 +23,13 @@@ from mediagoblin import storag
  from mediagoblin.db.open import setup_connection_and_db_from_config
  from mediagoblin.celery_setup import setup_celery_from_config
  from mediagoblin.globals import setup_globals
 +from mediagoblin.workbench import WorkbenchManager, DEFAULT_WORKBENCH_DIR
  
  
- OUR_MODULENAME = 'mediagoblin.celery_setup.from_celery'
+ OUR_MODULENAME = __name__
  
  
- def setup_self(setup_globals_func=setup_globals):
+ def setup_self():
      """
      Transform this module into a celery config module by reading the
      mediagoblin config file.  Set the environment variable
      queue_store = storage.storage_system_from_paste_config(
          mgoblin_section, 'queuestore')
  
-     setup_globals_func(
 +    workbench_manager = WorkbenchManager(
 +        mgoblin_section.get(
 +            'workbench_path', DEFAULT_WORKBENCH_DIR))
 +
+     setup_globals(
          db_connection=connection,
          database=db,
          public_store=public_store,