Test suite runs and passes!
[zzz-floof.git] / floof / controllers / main.py
1 import logging
2
3 import elixir
4 from pylons import request, response, session, tmpl_context as c
5 from pylons.controllers.util import abort, redirect_to
6
7 from floof.lib.base import BaseController, render
8 from floof.model.art import Art
9
10 log = logging.getLogger(__name__)
11
12 class MainController(BaseController):
13
14 def index(self):
15 c.artwork = Art.query.order_by(Art.id.desc()).all()
16 return render('/index.mako')