blog/app/models/__init__.py
def update_password(self, new_password=None):
        """ Hashes 'new_password' and saves it as the password. """

        self.password = generate_password_hash(new_password)

        if self.save(verbose=False):
            self.logger.warn('Updated password! %s' % self)
        else:
            raise AttributeError('Password update failed!')
 Hashes 'new_password' and saves it as the password. 
Hashes 'new_password' and saves it as the password.
Hashes ' new_password ' and saves it as the password .
def update_password(self, new_password=None):
        self.password = generate_password_hash(new_password)
        if self.save(verbose=False):
            self.logger.warn('Updated password! %s' % self)
        else:
            raise AttributeError('Password update failed!')
def update_password ( self , new_password = None ) : self . password = generate_password_hash ( new_password ) if self . save ( verbose = False ) : self . logger . warn ( 'Updated password! %s' % self ) else : raise AttributeError ( 'Password update failed!' )
Hashes 'new_password' and saves it as the password.
Hashes ' new_password ' and saves it as the password .
""" Hashes 'new_password' and saves it as the password. """
self
new_password