imio.smartweb.core 1.2.28__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-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/METADATA +10 -3
- {imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/RECORD +12 -12
- {imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/WHEEL +1 -1
- /imio.smartweb.core-1.2.28-py3.8-nspkg.pth → /imio.smartweb.core-1.2.29-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.28.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"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.29
|
4
4
|
Summary: Core product for iMio websites
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.core
|
6
6
|
Author: Christophe Boulanger
|
@@ -26,7 +26,7 @@ License-File: LICENSE.rst
|
|
26
26
|
Requires-Dist: setuptools
|
27
27
|
Requires-Dist: z3c.jbot
|
28
28
|
Requires-Dist: z3c.unconfigure
|
29
|
-
Requires-Dist: plone.api >=1.8.4
|
29
|
+
Requires-Dist: plone.api (>=1.8.4)
|
30
30
|
Requires-Dist: plone.gallery
|
31
31
|
Requires-Dist: plone.restapi
|
32
32
|
Requires-Dist: plone.app.dexterity
|
@@ -48,7 +48,7 @@ Requires-Dist: imio.smartweb.common
|
|
48
48
|
Requires-Dist: imio.smartweb.locales
|
49
49
|
Provides-Extra: test
|
50
50
|
Requires-Dist: plone.app.testing ; extra == 'test'
|
51
|
-
Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
|
51
|
+
Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
|
52
52
|
Requires-Dist: plone.app.contenttypes ; extra == 'test'
|
53
53
|
Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
|
54
54
|
Requires-Dist: plone.restapi[test] ; extra == 'test'
|
@@ -189,6 +189,13 @@ Changelog
|
|
189
189
|
=========
|
190
190
|
|
191
191
|
|
192
|
+
1.2.29 (2024-01-30)
|
193
|
+
-------------------
|
194
|
+
|
195
|
+
- Quick fix : effective date can be a str type. So the news sections were broken
|
196
|
+
[boulch]
|
197
|
+
|
198
|
+
|
192
199
|
1.2.28 (2024-01-26)
|
193
200
|
-------------------
|
194
201
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.29-py3.10-nspkg.pth,sha256=wnCUSUElqssZ5FI3x-9HqwD229HQ-bAuPoDUNJHmMtU,1684
|
2
2
|
imio/smartweb/core/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
3
3
|
imio/smartweb/core/config.py,sha256=BUgfvh4hCaw0onCYAG4gQI1O4hZ-GzXWEltdHi4YLIs,337
|
4
4
|
imio/smartweb/core/configure.zcml,sha256=PeC4rF--rF6MfVQ0NzggQrZWIl35oPtJdEhvQwGxhhI,1459
|
@@ -25,7 +25,7 @@ imio/smartweb/core/behaviors/subsite.py,sha256=O2aJHl3Jj9WTpGBmNJaoia-PAtb7aSHpC
|
|
25
25
|
imio/smartweb/core/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
imio/smartweb/core/browser/configure.zcml,sha256=Ml4uwbocH5_v_Pi_y8L0m4bUb55M4-jKnYhL1wuHR58,2828
|
27
27
|
imio/smartweb/core/browser/controlpanel.py,sha256=6HXq01oq9ndFc4fNx5Dv49TG92OiCKoK7ovQQUVNQkA,5361
|
28
|
-
imio/smartweb/core/browser/forms.py,sha256=
|
28
|
+
imio/smartweb/core/browser/forms.py,sha256=_6Z0x7yVeA5JaW4IwpYkX7bTIbw0UskgvtGfNDtMsrI,1091
|
29
29
|
imio/smartweb/core/browser/icons.py,sha256=LFBCYTfynp4qNX2OQuNmMTOUEcJv-oQ8Izu6opE3o7A,2065
|
30
30
|
imio/smartweb/core/browser/layout.py,sha256=wvo_Q2dYg1Yd8wOdYSfPg29NPESy9ndAGl6z3r5kxnY,2066
|
31
31
|
imio/smartweb/core/browser/utils.py,sha256=h4odo_1nXQCBqnp2JjHTW7nbcSZ15hvScmYQNOH1YkA,3228
|
@@ -188,7 +188,7 @@ imio/smartweb/core/contents/pages/procedure/content.py,sha256=e_kv7YsRF0vblfpxqq
|
|
188
188
|
imio/smartweb/core/contents/pages/procedure/utils.py,sha256=EATKvK72QPQheLXCXCoADYMjA3UfgPtkOPKdqnEyX64,1291
|
189
189
|
imio/smartweb/core/contents/pages/procedure/view.py,sha256=UeZwtdn20lCo7qbqqPcsD9LL69vNTq4m_wXB4nv8jMo,408
|
190
190
|
imio/smartweb/core/contents/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
191
|
-
imio/smartweb/core/contents/rest/base.py,sha256=
|
191
|
+
imio/smartweb/core/contents/rest/base.py,sha256=aX-wzmaT-ZP3sozu-BpRkZe-dNSL0QuLK0L7WxF40LM,2416
|
192
192
|
imio/smartweb/core/contents/rest/configure.zcml,sha256=vANiA3brvm8rsJIUSVNf0BdlEnejpEGXoC82-hpxKkA,433
|
193
193
|
imio/smartweb/core/contents/rest/traversal.py,sha256=KLNGhUmvTAzaRqSIzT3B28HgMBK4vcNV75AfyIesjN8,540
|
194
194
|
imio/smartweb/core/contents/rest/view.py,sha256=nOdJ3It-cEzwCLqz4QMAzMwZCWsMnWIJrSIhLcbCU4s,1014
|
@@ -212,13 +212,13 @@ imio/smartweb/core/contents/rest/news/view.pt,sha256=OUKvgb7dnkbfyPm30tEvqPeGBSq
|
|
212
212
|
imio/smartweb/core/contents/rest/news/view.py,sha256=8dkfrEHi4c7AbgDU1CIfWd5xRz8K28v2DCSY2j-sv0Y,410
|
213
213
|
imio/smartweb/core/contents/rest/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
214
214
|
imio/smartweb/core/contents/rest/search/configure.zcml,sha256=BTFcBQ28NINyEfoVgYwJgf0JWvk99ewSKgOYx91lZy4,951
|
215
|
-
imio/smartweb/core/contents/rest/search/endpoint.py,sha256=
|
215
|
+
imio/smartweb/core/contents/rest/search/endpoint.py,sha256=i5LMM0R1Xvpy76JHO6pI98G41Xep15fPR9uv9rqropo,9797
|
216
216
|
imio/smartweb/core/contents/sections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
217
217
|
imio/smartweb/core/contents/sections/base.py,sha256=2e3lIG_RGGFAshBEkTNG97OReAnn9GLQk_O_Eqh7SRY,2486
|
218
218
|
imio/smartweb/core/contents/sections/configure.zcml,sha256=aEbAu9MikK-sCVzST8Nn-bMbv7clnHfnoumlBW197Wk,2242
|
219
219
|
imio/smartweb/core/contents/sections/macros.pt,sha256=zfbNvH5fFj6j3M3v1Ys7UYcXpQnS-alw0L3w_8ScU20,4092
|
220
220
|
imio/smartweb/core/contents/sections/subscriber.py,sha256=WM7nEZVPOkmyT1GfkWGDWwLhuhUYaTnlBr6BJVqUJMk,642
|
221
|
-
imio/smartweb/core/contents/sections/views.py,sha256=
|
221
|
+
imio/smartweb/core/contents/sections/views.py,sha256=3cjeRFip7hsjJ47Lt8DwPGWTtvllUOL5yeKGI87Oc7M,3570
|
222
222
|
imio/smartweb/core/contents/sections/collection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
223
223
|
imio/smartweb/core/contents/sections/collection/configure.zcml,sha256=Ak4UbKFjogWZad6-5_y6oSx8tWXt3nN7bEdKXG7pQCI,920
|
224
224
|
imio/smartweb/core/contents/sections/collection/content.py,sha256=DMmU9rIaRlbRjIaot5RHXu59vJmAbun0FCmyahWhBCM,2379
|
@@ -680,10 +680,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=ulMbtvMcmV0Af4lhYtkkSh
|
|
680
680
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=Ht5NXE7K1HohmDv4BOaE4Z0mhnqtKqYbBuEiP371Uho,73
|
681
681
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=zcJvPnDRTjieUUi2TWqptptpear9dHHwflxrlvJ2N3k,5571
|
682
682
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
683
|
-
imio.smartweb.core-1.2.
|
684
|
-
imio.smartweb.core-1.2.
|
685
|
-
imio.smartweb.core-1.2.
|
686
|
-
imio.smartweb.core-1.2.
|
687
|
-
imio.smartweb.core-1.2.
|
688
|
-
imio.smartweb.core-1.2.
|
689
|
-
imio.smartweb.core-1.2.
|
683
|
+
imio.smartweb.core-1.2.29.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
684
|
+
imio.smartweb.core-1.2.29.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
685
|
+
imio.smartweb.core-1.2.29.dist-info/METADATA,sha256=Y31QyyE19cjzFqkAitRNtpfCZwMjkhnJP9aqLypy1Fo,48329
|
686
|
+
imio.smartweb.core-1.2.29.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
687
|
+
imio.smartweb.core-1.2.29.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
688
|
+
imio.smartweb.core-1.2.29.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
689
|
+
imio.smartweb.core-1.2.29.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.28.dist-info → imio.smartweb.core-1.2.29.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|