aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-07-01 17:19:22 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-07-02 07:21:44 -0700
commit58a947578cde02244c08268205e6855bee408c94 (patch)
treea5347202ffa596c23184474e362ef8d6db65564a /mediagoblin/gmg_commands
parente9f3306627c106d6b3848deceb00cc321465b627 (diff)
downloadmediagoblin-58a947578cde02244c08268205e6855bee408c94.tar.lz
mediagoblin-58a947578cde02244c08268205e6855bee408c94.tar.xz
mediagoblin-58a947578cde02244c08268205e6855bee408c94.zip
modified gmg to use plugin media_types and converted image media_type to new plugin style
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index fa25ecb2..4dfd7e92 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -42,7 +42,7 @@ class DatabaseData(object):
self.name, self.models, self.migrations, session)
-def gather_database_data(media_types, plugins):
+def gather_database_data(plugins):
"""
Gather all database data relevant to the extensions we have
installed so we can do migrations and table initialization.
@@ -59,13 +59,6 @@ def gather_database_data(media_types, plugins):
DatabaseData(
u'__main__', MAIN_MODELS, MAIN_MIGRATIONS))
- # Then get all registered media managers (eventually, plugins)
- for media_type in media_types:
- models = import_component('%s.models:MODELS' % media_type)
- migrations = import_component('%s.migrations:MIGRATIONS' % media_type)
- managed_dbdata.append(
- DatabaseData(media_type, models, migrations))
-
for plugin in plugins:
try:
models = import_component('{0}.models:MODELS'.format(plugin))
@@ -112,7 +105,6 @@ def run_dbupdate(app_config, global_config):
# Gather information from all media managers / projects
dbdatas = gather_database_data(
- app_config['media_types'],
global_config.get('plugins', {}).keys())
# Set up the database