Merge branch 'master' of git@veekun.com:floof
[zzz-floof.git] / floof / controllers / gallery.py
1 import logging
2
3 from pylons import request, response, session, tmpl_context as c, h
4 from pylons.controllers.util import abort, redirect
5 from pylons import url
6
7 from floof.lib.base import BaseController, render
8
9 log = logging.getLogger(__name__)
10 import elixir
11 from floof.model.search import GalleryWidget
12 class GalleryController(BaseController):
13
14 def delete(self, id):
15 c.gallery = h.get_object_or_404(GalleryWidget, id=id)
16 elixir.session.delete(tag)
17 elixir.session.commit()