Skip to content

Commit

Permalink
Merged in rick_pelletier/openpyxl/add_dump_worksheet_protection (pull…
Browse files Browse the repository at this point in the history
… request #65)

Add support for sheet protection in DumpWorksheet
  • Loading branch information
Themanwithoutaplan committed Jun 16, 2015
2 parents 5fe1c9b + ca701c2 commit 26ab00d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openpyxl/writer/dump_worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def _write_header(self):
xf.write(r)
except GeneratorExit:
pass
if self.protection.sheet:
prot = Element('sheetProtection', dict(self.protection))
xf.write(prot)
af = write_autofilter(self)
if af is not None:
xf.write(af)
Expand Down

0 comments on commit 26ab00d

Please # to comment.