def password(self, password): """Set name.""" session = Session() account = session.query(TblAccount) \ .filter(TblAccount.username == self.username) \ .first() account.password = password session.commit() self._password = password
def name(self, name): """Set name.""" session = Session() account = session.query(TblAccount) \ .filter(TblAccount.username == self.username) \ .first() account.name = name session.commit() self._name = name