diff options
author | Will Kahn-Greene <willg@bluesock.org> | 2012-03-12 21:17:08 -0400 |
---|---|---|
committer | Will Kahn-Greene <willg@bluesock.org> | 2012-05-13 00:00:08 -0400 |
commit | 29b6f91740e68d804612ff68295020f6cfa16071 (patch) | |
tree | 8812f0d9e1fd3894c097c56e5778c21e22d1fa61 /mediagoblin/app.py | |
parent | f10c3bb8e5fc44b6d580261a05f1e4b4639e0949 (diff) | |
download | mediagoblin-29b6f91740e68d804612ff68295020f6cfa16071.tar.lz mediagoblin-29b6f91740e68d804612ff68295020f6cfa16071.tar.xz mediagoblin-29b6f91740e68d804612ff68295020f6cfa16071.zip |
401. Plugin infrastructure
* implements installing, loading and setup for plugins
* codifies configuration
* has a sample plugin
* docs
* tests
Diffstat (limited to 'mediagoblin/app.py')
-rw-r--r-- | mediagoblin/app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mediagoblin/app.py b/mediagoblin/app.py index 511c363c..97080ed8 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -27,6 +27,7 @@ from mediagoblin.tools.response import render_404 from mediagoblin.tools import request as mg_request from mediagoblin.mg_globals import setup_globals from mediagoblin.init.celery import setup_celery_from_config +from mediagoblin.init.plugins import setup_plugins from mediagoblin.init import (get_jinja_loader, get_staticdirector, setup_global_and_app_config, setup_workbench, setup_database, setup_storage, setup_beaker_cache) @@ -64,6 +65,11 @@ class MediaGoblinApp(object): # Setup other connections / useful objects ########################################## + # Set up plugins -- need to do this early so that plugins can + # affect startup. + _log.info("Setting up plugins.") + setup_plugins() + # Set up the database self.connection, self.db = setup_database() |