aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/api/__init__.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-05-08 15:20:27 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-05-08 15:20:27 -0500
commit230b5eb2eb9ae9c2b0930bbd2e32dc963b90b9fc (patch)
tree8328166853cbc87c61fb29b6c163d528655a63c6 /mediagoblin/plugins/api/__init__.py
parentf65bf8983611b18ec3a6a042404c50b8558529df (diff)
downloadmediagoblin-230b5eb2eb9ae9c2b0930bbd2e32dc963b90b9fc.tar.lz
mediagoblin-230b5eb2eb9ae9c2b0930bbd2e32dc963b90b9fc.tar.xz
mediagoblin-230b5eb2eb9ae9c2b0930bbd2e32dc963b90b9fc.zip
Fixing API setup with new plugin "config spec" world
It shouldn't reference the config until in the setup_plugin() method, else there's a race condition.
Diffstat (limited to 'mediagoblin/plugins/api/__init__.py')
-rw-r--r--mediagoblin/plugins/api/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/plugins/api/__init__.py b/mediagoblin/plugins/api/__init__.py
index d3fdf2ef..1eddd9e0 100644
--- a/mediagoblin/plugins/api/__init__.py
+++ b/mediagoblin/plugins/api/__init__.py
@@ -23,11 +23,11 @@ _log = logging.getLogger(__name__)
PLUGIN_DIR = os.path.dirname(__file__)
-config = pluginapi.get_config(__name__)
-
def setup_plugin():
_log.info('Setting up API...')
+ config = pluginapi.get_config(__name__)
+
_log.debug('API config: {0}'.format(config))
routes = [