

def save_user(self, user):
    user.email = self.get_argument('email')
    user.name = self.get_argument('name', '')
    user.author = int(self.get_argument('author'))
    user.superuser = int(self.get_argument('superuser'))
    user.hostname = self.get_argument('hostname', '')
    if user.superuser:
        user.author = True
    user.save()

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