def get_all_users(self): envelope = self.create_envelope('get_all_users') envelope['results'] = [ user.to_dict() for user in User.query().fetch() ] self.write_response(self.jsonify(envelope))
def get_all_users(self): users = User.query().fetch() self.response.write(template.render("templates/users.html", {'users': users}))