merged in my branch 'resources', which is not aptly named anymore since it no longer...
[zzz-floof.git] / floof / controllers / gallery.py
diff --git a/floof/controllers/gallery.py b/floof/controllers/gallery.py
new file mode 100644 (file)
index 0000000..e923e30
--- /dev/null
@@ -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()