imio.smartweb.core 1.2.27__py3-none-any.whl → 1.2.29__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.
- imio/smartweb/core/browser/forms.py +3 -3
- imio/smartweb/core/contents/rest/base.py +3 -3
- imio/smartweb/core/contents/rest/search/endpoint.py +3 -3
- imio/smartweb/core/contents/sections/views.py +2 -0
- imio/smartweb/core/webcomponents/build/js/143.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/392.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/729.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/package.json +2 -1
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +2 -0
- imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +1 -2
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +41 -18
- imio/smartweb/core/webcomponents/src/utils/translation.js +38 -7
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/METADATA +23 -3
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/RECORD +22 -22
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/WHEEL +1 -1
- imio/smartweb/core/webcomponents/build/js/653.smartweb-webcomponents-compiled.js +0 -2
- /imio/smartweb/core/webcomponents/build/js/{653.smartweb-webcomponents-compiled.js.LICENSE.txt → 143.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.2.27-py3.8-nspkg.pth → /imio.smartweb.core-1.2.29-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.27.dist-info → imio.smartweb.core-1.2.29.dist-info}/top_level.txt +0 -0
@@ -18,9 +18,9 @@ class SmartwebCustomEditForm(CustomEditForm):
|
|
18
18
|
# and for minisites to exclude them as well.
|
19
19
|
for group in self.groups:
|
20
20
|
if "IExcludeFromNavigation.exclude_from_nav" in group.fields:
|
21
|
-
group.fields[
|
22
|
-
|
23
|
-
|
21
|
+
group.fields["IExcludeFromNavigation.exclude_from_nav"].mode = (
|
22
|
+
DISPLAY_MODE
|
23
|
+
)
|
24
24
|
|
25
25
|
|
26
26
|
SmartwebCustomEditView = layout.wrap_form(SmartwebCustomEditForm)
|
@@ -42,9 +42,9 @@ class BaseEndpoint(object):
|
|
42
42
|
f"{item['@id']}/@@images/{field}/{scale_name}?cache_key={modified_hash}"
|
43
43
|
)
|
44
44
|
item[f"{field}_{scale}_scale"] = cached_scale_url
|
45
|
-
item[
|
46
|
-
f"{field}
|
47
|
-
|
45
|
+
item[f"{field}_full_scale"] = (
|
46
|
+
f"{item['@id']}/@@images/{field}/?cache_key={modified_hash}"
|
47
|
+
)
|
48
48
|
del item[field]
|
49
49
|
|
50
50
|
def get_extra_params(self, params):
|
@@ -159,9 +159,9 @@ class ExtendedSearchHandler(SearchHandler):
|
|
159
159
|
)
|
160
160
|
item["_source_url"] = self._get_source_url(item["path_string"], core)
|
161
161
|
modified_hash = hash_md5(item["modified"])
|
162
|
-
item[
|
163
|
-
"
|
164
|
-
|
162
|
+
item["image_url"] = (
|
163
|
+
f'{item["_source_url"]}/@@images/image/paysage_vignette?cache_key={modified_hash}'
|
164
|
+
)
|
165
165
|
return item
|
166
166
|
|
167
167
|
@property
|
@@ -82,6 +82,8 @@ class CarouselOrTableSectionView(SectionView):
|
|
82
82
|
if effective is None:
|
83
83
|
return ""
|
84
84
|
target_timezone = pytz.timezone("Europe/Paris")
|
85
|
+
if isinstance(effective, str):
|
86
|
+
return effective
|
85
87
|
dt = effective.asdatetime()
|
86
88
|
target_datetime = dt.astimezone(target_timezone)
|
87
89
|
output_format = "%Y-%m-%dT%H:%M:%S%z"
|