1e251f0b261cf0bd6c0c1bd38ef8ad83c5062ca4
3 from pylons
import request
, response
, session
, tmpl_context
as c
4 from pylons
.controllers
.util
import abort
, redirect_to
5 from sqlalchemy
import func
6 from sqlalchemy
.orm
.exc
import NoResultFound
8 from floof
.lib
.base
import BaseController
, render
9 from floof
.model
.users
import User
11 log
= logging
.getLogger(__name__
)
13 class UsersController(BaseController
):
16 """List of all users."""
19 c
.users
= User
.query
.all()
21 return render('/users/index.mako')
27 c
.this_user
= User
.query
.filter(func
.lower(User
.name
) == name
) \
32 return render('/users/view.mako')