X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/bedce37c00ee72650787b590e0e549bf6971f2e3..366dedf71b3cdd775251c7cea4b1519b44b37164:/floof/controllers/gallery.py?ds=inline diff --git a/floof/controllers/gallery.py b/floof/controllers/gallery.py new file mode 100644 index 0000000..e923e30 --- /dev/null +++ b/floof/controllers/gallery.py @@ -0,0 +1,17 @@ +import logging + +from pylons import request, response, session, tmpl_context as c, h +from pylons.controllers.util import abort, redirect +from pylons import url + +from floof.lib.base import BaseController, render + +log = logging.getLogger(__name__) +import elixir +from floof.model.search import GalleryWidget +class GalleryController(BaseController): + + def delete(self, id): + c.gallery = h.get_object_or_404(GalleryWidget, id=id) + elixir.session.delete(tag) + elixir.session.commit()