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

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/users.py   mediagoblin(Download)
def adduser(args):
    #TODO: Lets trust admins this do not validate Emails :)
    commands_util.setup_app(args)
 
    args.username = commands_util.prompt_if_not_set(args.username, "Username:")
def makeadmin(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 
def changepw(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/gmg_commands/users.py   JoshuaGoblin(Download)
def adduser(args):
    #TODO: Lets trust admins this do not validate Emails :)
    commands_util.setup_app(args)
 
    args.username = commands_util.prompt_if_not_set(args.username, "Username:")
def makeadmin(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 
def changepw(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/gmg_commands/users.py   mediagoblin-spaetz(Download)
def adduser(args):
    #TODO: Lets trust admins this do not validate Emails :)
    commands_util.setup_app(args)
 
    args.username = commands_util.prompt_if_not_set(args.username, "Username:")
def makeadmin(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 
def changepw(args):
    commands_util.setup_app(args)
 
    db = mg_globals.database
 

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/shell.py   mediagoblin(Download)
    user_namespace = {
        'mg_globals': mg_globals,
        'mgoblin_app': commands_util.setup_app(args),
        'db': mg_globals.database}
 

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/reprocess.py   mediagoblin(Download)
        os.environ['CELERY_ALWAYS_EAGER'] = 'true'
 
    commands_util.setup_app(args)
 
    if args.reprocess_subcommand == "run":

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/assetlink.py   mediagoblin(Download)
def assetlink(args):
    """
    Link the asset directory of the currently installed theme and plugins
    """
    mgoblin_app = commands_util.setup_app(args)

src/m/e/mediagoblin-0.6.1/mediagoblin/gmg_commands/addmedia.py   mediagoblin(Download)
        os.environ['CELERY_ALWAYS_EAGER'] = 'true'
 
    app = commands_util.setup_app(args)
 
    # get the user

src/j/o/JoshuaGoblin-HEAD/mediagoblin/gmg_commands/shell.py   JoshuaGoblin(Download)
    user_namespace = {
        'mg_globals': mg_globals,
        'mgoblin_app': commands_util.setup_app(args),
        'db': mg_globals.database}
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/gmg_commands/reprocess.py   JoshuaGoblin(Download)
        os.environ['CELERY_ALWAYS_EAGER'] = 'true'
 
    commands_util.setup_app(args)
 
    if args.reprocess_subcommand == "run":

src/j/o/JoshuaGoblin-HEAD/mediagoblin/gmg_commands/deletemedia.py   JoshuaGoblin(Download)
def deletemedia(args):
    app = commands_util.setup_app(args)
 
    media_ids = set(map(int, args.media_ids.split(',')))
    found_medias = set()

  1 | 2  Next