Skip to content

Commit

Permalink
Added support for data validations to DumpWorksheet
Browse files Browse the repository at this point in the history
  • Loading branch information
rickpelletier committed Jun 17, 2015
1 parent 9f7a76a commit 4e96622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openpyxl/writer/dump_worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .relations import write_rels
from .worksheet import (
write_autofilter,
write_datavalidation,
write_cell,
write_cols,
write_format,
Expand Down Expand Up @@ -128,6 +129,9 @@ def _write_header(self):
af = write_autofilter(self)
if af is not None:
xf.write(af)
dv = write_datavalidation(self)
if dv is not None:
xf.write(dv)
if self._comments:
comments = Element('legacyDrawing', {'{%s}id' % REL_NS: 'commentsvml'})
xf.write(comments)
Expand Down

0 comments on commit 4e96622

Please # to comment.