Ejemplo n.º 1
0
def get_fso_temp_dir(userid, rootdir = TEMP_TOOLS):
    """ return a fileoverlay object on temporary directory
    """

    absrootdir = get_temp_path('', rootdir)
    fso_dir = fsoverlay.mkranddir(absrootdir, userid)
    return fso_dir
Ejemplo n.º 2
0
def init_app( global_config, settings, prefix = '/mgr' ):

    # global, shared settings

    temp_path = settings['genaf.temp_directory']
    set_temp_path( temp_path )

    fsomount(TEMP_TOOLS, get_temp_path('', TEMP_TOOLS))

    set_func_userid( generic_userid_func )

    # preparing for multiprocessing
    init_queue(settings)

    config = rhombus_init_app( global_config, settings, prefix=prefix )

    return config