celery_setup: drop param to setup_self and simplify OUR_MODULENAME
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 10 Jun 2011 19:20:18 +0000 (21:20 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 10 Jun 2011 19:20:18 +0000 (21:20 +0200)
commite893094a06ab5d659b82c2d2fe646b1545c131dd
treefe19c38c5532d2c91d8920e28082422c5d153df8
parentd07713d0b0696528927e720e957ac4d049e3f46f
celery_setup: drop param to setup_self and simplify OUR_MODULENAME

setup_self used to look like this:
setup_self(setup_globals_func=setup_globals)
The function isn't called with any param, so drop it.
Rewrite function as needed.

The module var OUR_MODULENAME just has the module's name in
it. This is available as __name__ anyway, so use this to
initialize the var.
mediagoblin/celery_setup/from_celery.py
mediagoblin/celery_setup/from_tests.py