e57e99aad931cec6aee1df9da64b4e148104efed
[zzz-floof.git] / floof / controllers / main.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 from floof.model import meta
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 = meta.Session.query(Art).order_by(Art.id.desc()).all()
16 return render('/index.mako')