parameters: (self, old_file_name=None, new_file_name=None)
docstring: Renames the given configuration file to the given new file name,
             if it exists. If it does not exist, nothing happens.
             If old_file_name is None (default), the file used in
             read_from_file is used. If new_file_name is None (default), the
             file old_file_name appended with .bak is used. If that file exists
             already, .1 is appended. If that file exists, .2 is appended, etc.
docstring_summary: Renames the given configuration file to the given new file name,
             if it exists. If it does not exist, nothing happens.
             If old_file_name is None (default), the file used in
             read_from_file is used. If new_file_name is None (default), the
             file old_file_name appended with .bak is used. If that file exists
             already, .1 is appended. If that file exists, .2 is appended, etc.
docstring_tokens: Renames the given configuration file to the given new file name if it exists . If it does not exist nothing happens . If old_file_name is None ( default ) the file used in read_from_file is used . If new_file_name is None ( default ) the file old_file_name appended with . bak is used . If that file exists already . 1 is appended . If that file exists . 2 is appended etc .
function: def rename_config_file(self, old_file_name=None, new_file_name=None):
          """Renames the given configuration file to the given new file name,
             if it exists. If it does not exist, nothing happens.
             If old_file_name is None (default), the file used in
             read_from_file is used. If new_file_name is None (default), the
             file old_file_name appended with .bak is used. If that file exists
             already, .1 is appended. If that file exists, .2 is appended, etc.
          """
          if old_file_name is None:
              old_file_name = self.db_filename
          if new_file_name is None:
              new_file_name = old_file_name + ".bak"
          if os.path.exists(new_file_name):
              i = 1
              while os.path.exists(new_file_name + "." + str(i)):
                  i += 1
              new_file_name = new_file_name + "." + str(i)
          if os.path.exists(old_file_name):
              logger.info(CFGMGR_BACKED_UP_CONFIG_FILE, old_file_name, new_file_name)
              os.rename(old_file_name, new_file_name)
function_tokens: def rename_config_file ( self , old_file_name = None , new_file_name = None ) : if old_file_name is None : old_file_name = self . db_filename if new_file_name is None : new_file_name = old_file_name + ".bak" if os . path . exists ( new_file_name ) : i = 1 while os . path . exists ( new_file_name + "." + str ( i ) ) : i += 1 new_file_name = new_file_name + "." + str ( i ) if os . path . exists ( old_file_name ) : logger . info ( CFGMGR_BACKED_UP_CONFIG_FILE , old_file_name , new_file_name ) os . rename ( old_file_name , new_file_name )