widgetastic.patternfly5 24.3.19.0__py3-none-any.whl → 24.4.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/METADATA +2 -1
- {widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/RECORD +5 -5
- {widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/WHEEL +1 -1
- widgetastic_patternfly5/components/menus/select.py +9 -0
- {widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/licenses/LICENSE +0 -0
{widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: widgetastic.patternfly5
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.4.15.0
|
|
4
4
|
Summary: Patternfly5 widget library for Widgetastic.
|
|
5
5
|
Project-URL: repository, https://github.com/RedHatQE/widgetastic.patternfly5
|
|
6
6
|
Maintainer-email: Nikhil Dhandre <ndhandre@redhat.com>, Egor Shamardin <eshamard@redhat.com>, Mike Shriver <mshriver@redhat.com>
|
|
@@ -34,6 +34,7 @@ Requires-Dist: codecov; extra == 'dev'
|
|
|
34
34
|
Requires-Dist: pre-commit; extra == 'dev'
|
|
35
35
|
Requires-Dist: pytest; extra == 'dev'
|
|
36
36
|
Requires-Dist: pytest-cov; extra == 'dev'
|
|
37
|
+
Requires-Dist: pytest-rerunfailures; extra == 'dev'
|
|
37
38
|
Requires-Dist: pytest-xdist; extra == 'dev'
|
|
38
39
|
Provides-Extra: doc
|
|
39
40
|
Requires-Dist: sphinx; extra == 'doc'
|
{widgetastic.patternfly5-24.3.19.0.dist-info → widgetastic.patternfly5-24.4.15.0.dist-info}/RECORD
RENAMED
|
@@ -37,8 +37,8 @@ widgetastic_patternfly5/components/menus/dropdown.py,sha256=5nCz0HRG4VcrzD1NFC9H
|
|
|
37
37
|
widgetastic_patternfly5/components/menus/menu.py,sha256=0cUb5V1y3RgRpdAB8DlPIL9OOl7IxBC8A1xjcZgfLBA,7949
|
|
38
38
|
widgetastic_patternfly5/components/menus/menu_toggle.py,sha256=PBwNvg6E2RPdCG6ALBUqyTZxCwThJgk5S-9ghTiZ9hM,1029
|
|
39
39
|
widgetastic_patternfly5/components/menus/options_menu.py,sha256=43D0_JHeY-kPORQi54NL9OVmcMyAolVnI4dqHpo5omY,1353
|
|
40
|
-
widgetastic_patternfly5/components/menus/select.py,sha256=
|
|
41
|
-
widgetastic.patternfly5-24.
|
|
42
|
-
widgetastic.patternfly5-24.
|
|
43
|
-
widgetastic.patternfly5-24.
|
|
44
|
-
widgetastic.patternfly5-24.
|
|
40
|
+
widgetastic_patternfly5/components/menus/select.py,sha256=D4M5XUsiQVye97dClWra1c6rD0M-HM4wVJ2VdVFM0F0,6537
|
|
41
|
+
widgetastic.patternfly5-24.4.15.0.dist-info/METADATA,sha256=lxzOzvnP6ACqHBqvWNCJ74O3nEAesZJlyiQw5KvtEK0,6857
|
|
42
|
+
widgetastic.patternfly5-24.4.15.0.dist-info/WHEEL,sha256=xl5aZkiJYVTjhVaiADvIe6UeUVylGNomrxKZ0Zda1CE,87
|
|
43
|
+
widgetastic.patternfly5-24.4.15.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
|
|
44
|
+
widgetastic.patternfly5-24.4.15.0.dist-info/RECORD,,
|
|
@@ -66,7 +66,10 @@ class BaseSelect:
|
|
|
66
66
|
|
|
67
67
|
def fill(self, value):
|
|
68
68
|
"""Fills a Select with a value."""
|
|
69
|
+
if self.read() == value:
|
|
70
|
+
return False
|
|
69
71
|
self.item_select(value)
|
|
72
|
+
return True
|
|
70
73
|
|
|
71
74
|
def read(self):
|
|
72
75
|
"""Returns a string of the text of the selected option."""
|
|
@@ -136,14 +139,20 @@ class BaseCheckboxSelect(BaseSelect):
|
|
|
136
139
|
Args:
|
|
137
140
|
items: A dictionary containing what items to select (True) or deselect (False)
|
|
138
141
|
"""
|
|
142
|
+
current_values = self.read()
|
|
143
|
+
has_changed = False
|
|
139
144
|
try:
|
|
140
145
|
for item, value in items.items():
|
|
146
|
+
if value == current_values.get(item, None):
|
|
147
|
+
continue
|
|
141
148
|
if value:
|
|
142
149
|
self.item_select(item, close=False)
|
|
143
150
|
else:
|
|
144
151
|
self.item_deselect(item, close=False)
|
|
152
|
+
has_changed = True
|
|
145
153
|
finally:
|
|
146
154
|
self.close()
|
|
155
|
+
return has_changed
|
|
147
156
|
|
|
148
157
|
def read(self):
|
|
149
158
|
"""Returns a dictionary containing the selected status as bools."""
|
|
File without changes
|