Esempio n. 1
0
    def _write_comment_files(self):
        # Write the comment files.
        index = 1
        for worksheet in self.workbook.worksheets():
            if not worksheet.has_comments:
                continue

            comment = Comments()
            comment._set_xml_writer(self._filename("xl/comments" + str(index) + ".xml"))
            comment._assemble_xml_file(worksheet.comments_array)
            index += 1
Esempio n. 2
0
    def _write_comment_files(self):
        # Write the comment files.
        xlsx_dir = self.package_dir

        index = 1
        for worksheet in self.workbook.worksheets():
            if not worksheet.has_comments:
                continue

            comment = Comments()

            self._mkdir(xlsx_dir + '/xl')
            self._mkdir(xlsx_dir + '/xl/drawings')

            comment._set_xml_writer(xlsx_dir + '/xl/comments'
                                    + str(index) + '.xml')
            comment._assemble_xml_file(worksheet.comments_array)
            index += 1
Esempio n. 3
0
    def _write_comment_files(self):
        # Write the comment files.
        index = 1
        for worksheet in self.workbook.worksheets():
            if not worksheet.has_comments:
                continue

            comment = Comments()
            comment._set_xml_writer(self._filename('xl/comments'
                                                   + str(index) + '.xml'))
            comment._assemble_xml_file(worksheet.comments_list)
            index += 1
Esempio n. 4
0
    def _write_comment_files(self):
        # Write the comment files.
        xlsx_dir = self.package_dir

        index = 1
        for worksheet in self.workbook.worksheets():
            if not worksheet.has_comments:
                continue

            comment = Comments()

            self._mkdir(xlsx_dir + '/xl')
            self._mkdir(xlsx_dir + '/xl/drawings')

            comment._set_xml_writer(xlsx_dir + '/xl/comments' + str(index) +
                                    '.xml')
            comment._assemble_xml_file(worksheet.comments_array)
            index += 1