2b8b877cf69f64f2e2f45223291aa601885a287e
[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, Art
8
9 log = logging.getLogger(__name__)
10
11 class MainController(BaseController):
12
13 def index(self):
14 c.artwork = meta.Session.query(Art).order_by(Art.id.desc()).all()
15 return render('/index.mako')