custom.py 639 B

1234567891011121314151617181920212223242526272829303132333435
  1. #Autogenerated schema
  2. from openpyxl.descriptors.serialisable import Serialisable
  3. from openpyxl.descriptors import (
  4. String,
  5. Sequence,
  6. )
  7. # can be done with a nested sequence
  8. class CustomProperty(Serialisable):
  9. tagname = "customProperty"
  10. name = String()
  11. def __init__(self,
  12. name=None,
  13. ):
  14. self.name = name
  15. class CustomProperties(Serialisable):
  16. tagname = "customProperties"
  17. customPr = Sequence(expected_type=CustomProperty)
  18. __elements__ = ('customPr',)
  19. def __init__(self,
  20. customPr=(),
  21. ):
  22. self.customPr = customPr