def index(req): users = webstruct.query(User).all() return dict(users=users)
def show_user(request): name = request.urlvars['username'] user = webstruct.query(User).one() return dict(user=user)