3b69ed6c921788da9ce2314fcbe173516946697f
[zzz-floof.git] / floof / controllers / tag.py
1 import logging
2
3 from pylons import request, response, session, tmpl_context as c
4 from pylons.controllers.util import abort, redirect_to
5
6 from floof.lib.base import BaseController, render
7
8 log = logging.getLogger(__name__)
9
10 import elixir
11 from floof.model.art import Tag
12
13 class TagController(BaseController):
14
15 def delete(self, id):
16 tag = Tag.get(id)
17 if tag:
18 elixir.session.delete(tag)
19 elixir.session.commit()
20 redirect_to(request.referrer)