# -*- coding: utf-8 -*- <%inherit file="/pygall/base.mako.html"/>\ <%! import os %> <% dirs = {} rows = [] id = 0 for path in c.tree: id += 1 row = {} row['id'] = id row['path'] = path row['class'] = "file" if path.endswith(os.sep): path = path[:-1] dirs[path] = id row['class'] = "folder" parent = os.path.dirname(path) row['parent'] = dirs[parent] if dirs.has_key(parent) else None rows.append(row) %>

Importer les photos dans la gallerie PyGall

% for row in rows: % if row['parent'] is None: % else: % endif % endfor
Titre Importer Supprimer
${row['path']}
############ <%def name="title()">Import de photos\ ############ <%def name="stylesheets()">\ ${parent.stylesheets()} \ ############ <%def name="javascripts()">\ ${parent.javascripts()} \ ############