Removed some reliance on the logged-in user.
[zzz-floof.git] / floof / controllers / main.py
index 2b8b877..1eb447c 100644 (file)
@@ -1,15 +1,16 @@
 import logging
 
+import elixir
 from pylons import request, response, session, tmpl_context as c
 from pylons.controllers.util import abort, redirect_to
 
 from floof.lib.base import BaseController, render
-from floof.model import meta, Art
+from floof.model.art import Art
 
 log = logging.getLogger(__name__)
 
 class MainController(BaseController):
 
     def index(self):
-        c.artwork = meta.Session.query(Art).order_by(Art.id.desc()).all()
+        c.artwork = Art.query.order_by(Art.id.desc()).all()
         return render('/index.mako')