import elixir
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
-from sqlalchemy import func
from sqlalchemy.orm.exc import NoResultFound
import floof.lib.helpers as h
`type`, and `add_remove` as parameters.
"""
try:
- user = User.query.filter(func.lower(User.name) == name).one()
+ user = User.get_by(name=name)
except NoResultFound:
abort(404)