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')