def show_info_view(path, view, meta, defaults):
    file_path = os.path.join(path, meta)
    success, fso = request.app.supervisor.exts.fsal.get_fso(file_path)
    if not success:
        # There is no such file
        abort(404)
    try:
        facets = list(get_facets((file_path,), facet_type=view))[0]
    except IndexError:
        abort(404)
    fso.facets = facets
    defaults['entry'] = fso
    return defaults
 def get_facets(self, files):
     return get_facets(f.rel_path for f in files)
Пример #3
0
 def get_facets(self, files):
     return get_facets(f.rel_path for f in files)