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

All Samples(15)  |  Call(9)  |  Derive(0)  |  Import(6)

        def setup_storage():
    global_config = mg_globals.global_config

    key_short = 'publicstore'
    key_long = "storage:" + key_short
    public_store = storage_system_from_config(global_config[key_long])

    key_short = 'queuestore'
    key_long = "storage:" + key_short
    queue_store = storage_system_from_config(global_config[key_long])

    setup_globals(
        public_store=public_store,
        queue_store=queue_store)

    return public_store, queue_store
        


src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/app.py   mediagoblin-spaetz(Download)
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_locales, setup_workbench, setup_database,
    setup_storage, setup_beaker_cache)
 
        # Set up storage systems
        self.public_store, self.queue_store = setup_storage()
 
        # set up routing

src/m/e/mediagoblin-0.6.1/mediagoblin/app.py   mediagoblin(Download)
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_locales, setup_workbench, setup_database,
    setup_storage)
 
        # Set up storage systems
        self.public_store, self.queue_store = setup_storage()
 
        # set up routing

src/j/o/JoshuaGoblin-HEAD/mediagoblin/app.py   JoshuaGoblin(Download)
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_locales, setup_workbench, setup_database,
    setup_storage)
 
        # Set up storage systems
        self.public_store, self.queue_store = setup_storage()
 
        # set up routing

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/gmg_commands/import_export.py   mediagoblin-spaetz(Download)
from mediagoblin.db.open import setup_connection_and_db_from_config
from mediagoblin.storage.filestorage import BasicFileStorage
from mediagoblin.init import setup_storage, setup_global_and_app_config
 
import shutil
 
    # Creates mg_globals.public_store and mg_globals.queue_store
    setup_storage()
 
    global_config, app_config = setup_global_and_app_config(args.conf_file)
    globa_config, app_config = setup_global_and_app_config(args.conf_file)
 
    setup_storage()
 
    connection, db = setup_connection_and_db_from_config(

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/import_export.py   mediagoblin(Download)
from mediagoblin.gmg_commands import util as commands_util
from mediagoblin.storage.filestorage import BasicFileStorage
from mediagoblin.init import setup_storage, setup_global_and_app_config
 
import shutil
 
    # Creates mg_globals.public_store and mg_globals.queue_store
    setup_storage()
 
    global_config, app_config = setup_global_and_app_config(args.conf_file)
    globa_config, app_config = setup_global_and_app_config(args.conf_file)
 
    setup_storage()
 
    db = setup_connection_and_db_from_config(app_config)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/gmg_commands/import_export.py   JoshuaGoblin(Download)
from mediagoblin.gmg_commands import util as commands_util
from mediagoblin.storage.filestorage import BasicFileStorage
from mediagoblin.init import setup_storage, setup_global_and_app_config
 
import shutil
 
    # Creates mg_globals.public_store and mg_globals.queue_store
    setup_storage()
 
    global_config, app_config = setup_global_and_app_config(args.conf_file)
    globa_config, app_config = setup_global_and_app_config(args.conf_file)
 
    setup_storage()
 
    db = setup_connection_and_db_from_config(app_config)