def new_folders(kvlclient, request):
    try:
        config = yakonfig.get_global_config('dossier.folders')
        # For old configs.
        if 'prefix' in config:
            config['namespace'] = config.pop('prefix')
    except __HOLE__:
        config = {}
    if 'annotator_id' in request.query:
        config['owner'] = request.query['annotator_id']
    return Folders(kvlclient, **config)
dataset/ETHPy150Open dossier/dossier.web/dossier/web/routes.py/new_folders