aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/dbupdate.py
diff options
context:
space:
mode:
authorxray7224 <xray7224@googlemail.com>2013-07-14 15:27:52 +0100
committerxray7224 <xray7224@googlemail.com>2013-07-14 15:27:52 +0100
commite49263564b0ee8859c43e2716fcedab6e80bf164 (patch)
tree37411b19738484cbba814e584b8d3547d3a2ded0 /mediagoblin/gmg_commands/dbupdate.py
parent49a47ec991152a5dd25a7460e1d3d11afb73d32d (diff)
parent2d0028e93283fea397133294a5eb45b67d5ed0ab (diff)
downloadmediagoblin-e49263564b0ee8859c43e2716fcedab6e80bf164.tar.lz
mediagoblin-e49263564b0ee8859c43e2716fcedab6e80bf164.tar.xz
mediagoblin-e49263564b0ee8859c43e2716fcedab6e80bf164.zip
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-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 22ad426c..00007567 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))
@@ -127,7 +120,6 @@ def run_all_migrations(db, app_config, global_config):
"""
# Gather information from all media managers / projects
dbdatas = gather_database_data(
- app_config['media_types'],
global_config.get('plugins', {}).keys())
Session = sessionmaker(bind=db.engine)