This method write a sample file, with attributes, descriptions,
        sample values, required flags, using the configuration object
        properties.

def write_config_file(self, f, comments):
        """This method write a sample file, with attributes, descriptions,
        sample values, required flags, using the configuration object
        properties.
        """
        if comments:
            f.write("#####################################\n")
            f.write("# Section : ")
            f.write("#".join(self.get_representation()) + "\n")
            f.write("#####################################\n")
        f.write("[" + self._name + "]\n")
        if self._desc and comments:
            f.write("# Description : ")
            for i in self._desc.split('\n'):
                f.write("# ")
                f.write(i)
                f.write("\n")
            f.write("\n")