Dumps the content to a string, suitable to being written on a file.
        :param result: The result being processed.
        :return: string

def dump_report_content(self, request, result):
        """
        Dumps the content to a string, suitable to being written on a file.
        :param result: The result being processed.
        :return: string
        """

        output = StringIO()
        writer = csv.writer(output, **self.csv_kwargs)
        writer.writerows([result.headers] + result.values)
        return output.getvalue()