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