def _image_filename(album_slug, slug): return os.path.join( settings.DATA_DIR, 'gallery', 'images', album_slug, models.album(album_slug).photo(slug).filename )
def photo(static_file, album_slug, slug): static_file.content = render('/gallery/photo.html', { 'photo': models.album(album_slug).photo(slug), })
def album(static_file, slug): static_file.content = render('/gallery/album.html', { 'album': models.album(slug), })