

def get(self):
    if (not self.authenticate(superuser=True)):
        return
    if self.get_argument('login_as', None):
        content_url = url_factory.load_basic_parameters(self, prefix='/users')
        user = self.models.users.get(username=content_url['profile'])[0]
        response = {
            'email': user.email,
        }
        self.set_secure_cookie('user', tornado.escape.json_encode(response), path=self.base_path, HttpOnly=True)
        self.redirect(self.nav_url(username=content_url['profile']))
        return
    self.display['user'] = self.get_author_user()
    self.display['users'] = self.models.users.get()
    self.fill_template('users.html')

dataset/ETHPy150Open mimecuvalo/helloworld/controllers/users.py UsersHandler.get/original