Mercurial > kallithea
diff rhodecode/lib/celerypylons/commands.py @ 1726:fe8c2e881403 beta
moved pylons config out of global scope for celerypylons
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 26 Nov 2011 02:23:28 +0200 |
parents | 13d6da57b0cf |
children | 07e56179633e |
line wrap: on
line diff
--- a/rhodecode/lib/celerypylons/commands.py Sat Nov 26 02:17:47 2011 +0200 +++ b/rhodecode/lib/celerypylons/commands.py Sat Nov 26 02:23:28 2011 +0200 @@ -1,7 +1,7 @@ from rhodecode.lib.utils import BasePasterCommand, Command from celery.app import app_or_default from celery.bin import camqadm, celerybeat, celeryd, celeryev -from pylons import config + from rhodecode.lib import str2bool __all__ = ['CeleryDaemonCommand', 'CeleryBeatCommand', @@ -28,6 +28,7 @@ self.parser.add_option(x) def command(self): + from pylons import config try: CELERY_ON = str2bool(config['app_conf'].get('use_celery')) except KeyError: