makes default user pages full of by/for/of. duct-taped, doesn't really clone something
[zzz-floof.git] / floof / controllers / user_settings.py
index 8d8adf0..de46e37 100644 (file)
@@ -3,7 +3,6 @@ import logging
 import elixir
 from pylons import request, response, session, tmpl_context as c
 from pylons.controllers.util import abort, redirect_to
 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
 from sqlalchemy.orm.exc import NoResultFound
 
 import floof.lib.helpers as h
@@ -22,7 +21,7 @@ class UserSettingsController(BaseController):
         `type`, and `add_remove` as parameters.
         """
         try:
         `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)
 
         except NoResultFound:
             abort(404)