#NEWLINE# def _save_config( self , req ) : #NEWLINE# #INDENT# 'Try to save the config, and display either a success notice or a\n        failure warning.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . config . save ( ) #NEWLINE# add_notice ( req , _ ( 'Your changes have been saved.' ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# self . log . error ( 'Error writing to trac.ini: %s' , exception_to_unicode ( e ) ) #NEWLINE# add_warning ( req , _ ( 'Error writing to trac.ini, make sure it is writable by the web server. Your changes have not been saved.' ) )