Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/openpyxl/chartsheet/publish.py: 70%
29 statements
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
1# Copyright (c) 2010-2022 openpyxl
3from openpyxl.descriptors import (
4 Bool,
5 Integer,
6 String,
7 Set,
8 Sequence
9)
10from openpyxl.descriptors.serialisable import Serialisable
13class WebPublishItem(Serialisable):
14 tagname = "webPublishItem"
16 id = Integer()
17 divId = String()
18 sourceType = Set(values=(['sheet', 'printArea', 'autoFilter', 'range', 'chart', 'pivotTable', 'query', 'label']))
19 sourceRef = String()
20 sourceObject = String(allow_none=True)
21 destinationFile = String()
22 title = String(allow_none=True)
23 autoRepublish = Bool(allow_none=True)
25 def __init__(self,
26 id=None,
27 divId=None,
28 sourceType=None,
29 sourceRef=None,
30 sourceObject=None,
31 destinationFile=None,
32 title=None,
33 autoRepublish=None,
34 ):
35 self.id = id
36 self.divId = divId
37 self.sourceType = sourceType
38 self.sourceRef = sourceRef
39 self.sourceObject = sourceObject
40 self.destinationFile = destinationFile
41 self.title = title
42 self.autoRepublish = autoRepublish
45class WebPublishItems(Serialisable):
46 tagname = "WebPublishItems"
48 count = Integer(allow_none=True)
49 webPublishItem = Sequence(expected_type=WebPublishItem, )
51 __elements__ = ('webPublishItem',)
53 def __init__(self,
54 count=None,
55 webPublishItem=None,
56 ):
57 self.count = len(webPublishItem)
58 self.webPublishItem = webPublishItem