Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/gmg_commands/migrate.py   mediagoblin-spaetz(Download)
 
    from mediagoblin.db.mongo import util as db_util
    from mediagoblin.db.mongo.open import setup_connection_and_db_from_config
 
    global_config, app_config = setup_global_and_app_config(conf_file)
 
    connection, db = setup_connection_and_db_from_config(
        app_config, use_pymongo=True)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/sql/convert.py   mediagoblin-spaetz(Download)
from mediagoblin.db.sql.open import setup_connection_and_db_from_config as \
    sql_connect
from mediagoblin.db.mongo.open import setup_connection_and_db_from_config as \
    mongo_connect
 
def run_conversion(config_name):
    global_config, app_config = setup_global_and_app_config(config_name)
 
    sql_conn, sql_db = sql_connect(app_config)
    mk_conn, mk_db = mongo_connect(app_config)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/open.py   mediagoblin-spaetz(Download)
        load_models
else:
    from mediagoblin.db.mongo.open import \
        setup_connection_and_db_from_config, check_db_migrations_current, \
        load_models