def get_icon(file): icon_path = icon.get_icon_path_for_file(file) icon_html = html.img(src=icon_path) return icon_html
def get_icon_html(file): return html.img(src="file://" + icon.get_icon_path_for_file(file))
def show_image(file): url = access.path_to_url(file.path) return html.img(src=url)