Merge branch 'rodney757-media_plugins'
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Jul 2013 21:24:36 +0000 (16:24 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Jul 2013 21:24:36 +0000 (16:24 -0500)
Conflicts:
mediagoblin.ini
mediagoblin/tests/test_mgoblin_app.ini

1  2 
mediagoblin.ini
mediagoblin/app.py
mediagoblin/config_spec.ini
mediagoblin/gmg_commands/dbupdate.py
mediagoblin/media_types/pdf/processing.py
mediagoblin/tests/test_mgoblin_app.ini
mediagoblin/tests/test_submission.py

diff --cc mediagoblin.ini
Simple merge
Simple merge
Simple merge
index 22ad426c1046dd0fbe8bfb9518490870c4335326,4dfd7e927ca26ab2164964b6799876b585239bf5..00007567948999e365f28a6bb31c162b10ef0e6a
@@@ -110,26 -103,13 +103,25 @@@ def run_dbupdate(app_config, global_con
      in the future, plugins)
      """
  
 +    # Set up the database
 +    db = setup_connection_and_db_from_config(app_config, migrations=True)
 +    #Run the migrations
 +    run_all_migrations(db, app_config, global_config)
 +
 +
 +def run_all_migrations(db, app_config, global_config):
 +    """
 +    Initializes or migrates a database that already has a 
 +    connection setup and also initializes or migrates all
 +    extensions based on the config files.
 +
 +    It can be used to initialize an in-memory database for
 +    testing.
 +    """
      # Gather information from all media managers / projects
      dbdatas = gather_database_data(
-             app_config['media_types'],
              global_config.get('plugins', {}).keys())
  
 -    # Set up the database
 -    db = setup_connection_and_db_from_config(app_config, migrations=True)
 -
      Session = sessionmaker(bind=db.engine)
  
      # Setup media managers for all dbdata, run init/migrate and print info
index 5c3c46e7e7048c9d08912fa4cdabd18a22882e44,ecd6c9d2c830f8d23484cfe5c4db2961db1fe14c..535cf1c1dfbccdaaaa6fa7ae20b2267f7d7db3e2
@@@ -33,4 -30,5 +31,6 @@@ BROKER_HOST = "sqlite:///%(here)s/user_
  [[mediagoblin.plugins.httpapiauth]]
  [[mediagoblin.plugins.piwigo]]
  [[mediagoblin.plugins.basic_auth]]
 +[[mediagoblin.plugins.openid]]
+ [[mediagoblin.media_types.image]]
+ [[mediagoblin.media_types.pdf]]
Simple merge