removing old callable utilities and porting stuff over.
This commit is contained in:
@@ -18,7 +18,7 @@ import os
|
||||
import sys
|
||||
|
||||
from celery import Celery
|
||||
from mediagoblin.tools.pluginapi import callable_runall
|
||||
from mediagoblin.tools.pluginapi import hook_runall
|
||||
|
||||
|
||||
MANDATORY_CELERY_IMPORTS = ['mediagoblin.processing.task']
|
||||
@@ -66,7 +66,7 @@ def setup_celery_app(app_config, global_config,
|
||||
celery_app = Celery()
|
||||
celery_app.config_from_object(celery_settings)
|
||||
|
||||
callable_runall('celery_setup', celery_app)
|
||||
hook_runall('celery_setup', celery_app)
|
||||
|
||||
|
||||
def setup_celery_from_config(app_config, global_config,
|
||||
|
||||
@@ -22,7 +22,7 @@ from celery.signals import setup_logging
|
||||
|
||||
from mediagoblin import app, mg_globals
|
||||
from mediagoblin.init.celery import setup_celery_from_config
|
||||
from mediagoblin.tools.pluginapi import callable_runall
|
||||
from mediagoblin.tools.pluginapi import hook_runall
|
||||
|
||||
|
||||
OUR_MODULENAME = __name__
|
||||
@@ -47,7 +47,7 @@ def setup_logging_from_paste_ini(loglevel, **kw):
|
||||
|
||||
logging.config.fileConfig(logging_conf_file)
|
||||
|
||||
callable_runall('celery_logging_setup')
|
||||
hook_runall('celery_logging_setup')
|
||||
|
||||
|
||||
setup_logging.connect(setup_logging_from_paste_ini)
|
||||
|
||||
@@ -59,4 +59,4 @@ def setup_plugins():
|
||||
pman.register_hooks(plugin.hooks)
|
||||
|
||||
# Execute anything registered to the setup hook.
|
||||
pluginapi.callable_runall('setup')
|
||||
pluginapi.hook_runall('setup')
|
||||
|
||||
Reference in New Issue
Block a user