imio.smartweb.core 1.2.68__py3-none-any.whl → 1.2.70__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/contents/sections/files/view.py +3 -0
- imio/smartweb/core/contents/sections/views.py +6 -0
- imio/smartweb/core/viewlets/ogptags.py +1 -1
- imio/smartweb/core/vocabularies.py +1 -1
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/METADATA +22 -1
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/RECORD +12 -12
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/WHEEL +1 -1
- /imio.smartweb.core-1.2.68-py3.11-nspkg.pth → /imio.smartweb.core-1.2.70-py3.12-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/top_level.txt +0 -0
@@ -4,13 +4,16 @@ from imio.smartweb.core.contents.sections.views import CarouselOrTableSectionVie
|
|
4
4
|
from imio.smartweb.core.utils import batch_results
|
5
5
|
from imio.smartweb.core.utils import get_scale_url
|
6
6
|
from plone import api
|
7
|
+
from plone.protect.interfaces import IDisableCSRFProtection
|
7
8
|
from zope.component import queryMultiAdapter
|
9
|
+
from zope.interface import alsoProvides
|
8
10
|
|
9
11
|
|
10
12
|
class FilesView(CarouselOrTableSectionView):
|
11
13
|
"""Files Section view"""
|
12
14
|
|
13
15
|
def items(self):
|
16
|
+
alsoProvides(self.request, IDisableCSRFProtection)
|
14
17
|
orientation = self.context.orientation
|
15
18
|
image_scale = self.image_scale
|
16
19
|
items = super(FilesView, self).items()
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
from Acquisition import aq_inner
|
4
4
|
from imio.smartweb.common.utils import get_vocabulary
|
5
|
+
from imio.smartweb.common.utils import is_log_active
|
5
6
|
from imio.smartweb.common.utils import translate_vocabulary_term
|
6
7
|
from imio.smartweb.core.utils import hash_md5
|
7
8
|
from imio.smartweb.core.utils import reindexParent
|
@@ -161,3 +162,8 @@ class HashableJsonSectionView(SectionView):
|
|
161
162
|
alsoProvides(self.request, IDisableCSRFProtection)
|
162
163
|
modified(self.context)
|
163
164
|
annotations[SECTION_ITEMS_HASH_KEY] = new_hash
|
165
|
+
if is_log_active():
|
166
|
+
if "JSONS" in annotations:
|
167
|
+
annotations["JSONS"].append(self.json_data)
|
168
|
+
else:
|
169
|
+
annotations["JSONS"] = [self.json_data]
|
@@ -76,7 +76,7 @@ class OgpTagsViewlet(HeaderViewlet):
|
|
76
76
|
client_secret = os.environ.get("RESTAPI_NEWS_CLIENT_SECRET")
|
77
77
|
auth = get_wca_token(client_id, client_secret)
|
78
78
|
auth_source_url = f"{auth_source_url}/{endpoint}?UID={uid}&{params}"
|
79
|
-
result_json = get_json(auth_source_url, auth=
|
79
|
+
result_json = get_json(auth_source_url, auth=auth)
|
80
80
|
if result_json:
|
81
81
|
self._item = result_json["items"][0]
|
82
82
|
self._set_image()
|
@@ -224,7 +224,7 @@ class RemoteContactsVocabularyFactory:
|
|
224
224
|
"metadata_fields=breadcrumb",
|
225
225
|
]
|
226
226
|
url = "{}/@search?{}".format(DIRECTORY_URL, "&".join(params))
|
227
|
-
json_contacts = get_json(url, None,
|
227
|
+
json_contacts = get_json(url, None, 12)
|
228
228
|
if json_contacts is None or len(json_contacts.get("items", [])) == 0:
|
229
229
|
return SimpleVocabulary([])
|
230
230
|
return SimpleVocabulary(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.70
|
4
4
|
Summary: Core product for iMio websites
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.core
|
6
6
|
Author: Christophe Boulanger
|
@@ -191,6 +191,27 @@ Changelog
|
|
191
191
|
=========
|
192
192
|
|
193
193
|
|
194
|
+
1.2.70 (2024-09-16)
|
195
|
+
-------------------
|
196
|
+
|
197
|
+
- WEB-4143 : Fix a CSRF bug in section files
|
198
|
+
[boulch]
|
199
|
+
|
200
|
+
- WEB-4144 : Set requests timeout to 12 when we populate RemoteContacts vocabulary
|
201
|
+
[remdub]
|
202
|
+
|
203
|
+
|
204
|
+
1.2.69 (2024-09-10)
|
205
|
+
-------------------
|
206
|
+
|
207
|
+
- WEB-4121 : Fix missing auth for OGP tags
|
208
|
+
See commit 381a5e422d8705f86c434d2f0d4bd099938b9cc3
|
209
|
+
[laulaz]
|
210
|
+
|
211
|
+
- WEB-3995 : Add temporary debug annotation to verify section hash updates
|
212
|
+
[laulaz, remdub]
|
213
|
+
|
214
|
+
|
194
215
|
1.2.68 (2024-09-09)
|
195
216
|
-------------------
|
196
217
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.70-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
|
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
|
@@ -13,7 +13,7 @@ imio/smartweb/core/subscribers.zcml,sha256=WWeOFM6nOZ5MBfaijdE_UfWqYcAYepAkvO-vx
|
|
13
13
|
imio/smartweb/core/testing.py,sha256=t0Y3t3FXX2RjgklcRzHT37AjKbMKL3ZjjT3d2UhQm7A,3636
|
14
14
|
imio/smartweb/core/testing.zcml,sha256=VyKjWW2QHYuUYKkGUvtsdFI_Pa7Wcp1yBBDla112eMc,172
|
15
15
|
imio/smartweb/core/utils.py,sha256=krc0msUa9cHIALgT1RpqMXAslusg3FswRy4aY5o6oIo,7597
|
16
|
-
imio/smartweb/core/vocabularies.py,sha256=
|
16
|
+
imio/smartweb/core/vocabularies.py,sha256=hc9_3xDsgkyWVBgujybOkbksWGbgf81mvswByR4XDrY,22810
|
17
17
|
imio/smartweb/core/vocabularies.zcml,sha256=KSH7JWlAJtKawLvfmsztZzE_AK1JR6B5udY6tleY2cQ,5904
|
18
18
|
imio/smartweb/core/behaviors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
imio/smartweb/core/behaviors/categorization.py,sha256=a5i8pYagdTcEG43A1NLs4SGF42PCAUFn8IRUq1pFqpM,828
|
@@ -241,7 +241,7 @@ imio/smartweb/core/contents/sections/base.py,sha256=2e3lIG_RGGFAshBEkTNG97OReAnn
|
|
241
241
|
imio/smartweb/core/contents/sections/configure.zcml,sha256=fPfYvU7YvezfjKPRT_yPcZgjmyUX9VZFb-6jUJiERqM,2767
|
242
242
|
imio/smartweb/core/contents/sections/macros.pt,sha256=tvWBh40KuwWpOAu327NWZAwixvpWMMKdaOyIxMp0o-k,5579
|
243
243
|
imio/smartweb/core/contents/sections/subscriber.py,sha256=WM7nEZVPOkmyT1GfkWGDWwLhuhUYaTnlBr6BJVqUJMk,642
|
244
|
-
imio/smartweb/core/contents/sections/views.py,sha256=
|
244
|
+
imio/smartweb/core/contents/sections/views.py,sha256=739Mm8cNrHz_JUdCD-x80tQXuxj2DocqpjYL19TxcnY,5977
|
245
245
|
imio/smartweb/core/contents/sections/collection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
246
246
|
imio/smartweb/core/contents/sections/collection/configure.zcml,sha256=Ak4UbKFjogWZad6-5_y6oSx8tWXt3nN7bEdKXG7pQCI,920
|
247
247
|
imio/smartweb/core/contents/sections/collection/content.py,sha256=DMmU9rIaRlbRjIaot5RHXu59vJmAbun0FCmyahWhBCM,2379
|
@@ -273,7 +273,7 @@ imio/smartweb/core/contents/sections/external_content/views.py,sha256=KPOjV4HBXH
|
|
273
273
|
imio/smartweb/core/contents/sections/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
274
274
|
imio/smartweb/core/contents/sections/files/configure.zcml,sha256=DyyHzDEKLWmOywbV08Zf7bvf0At5jyAeDfZ8PCK5Rog,501
|
275
275
|
imio/smartweb/core/contents/sections/files/content.py,sha256=C3jEokoNKIE-1cQlaWD-aKLfPDG6k8YasJeZxOR8swk,1088
|
276
|
-
imio/smartweb/core/contents/sections/files/view.py,sha256=
|
276
|
+
imio/smartweb/core/contents/sections/files/view.py,sha256=zIbPyNT07vqcI9_m9WE2eFgcSoxiO8zCc8oeRt-3aZc,2583
|
277
277
|
imio/smartweb/core/contents/sections/gallery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
278
278
|
imio/smartweb/core/contents/sections/gallery/configure.zcml,sha256=0fq5_PWU9vFrmPkExvFPBCzZrDSnlN8B0K7fHQReAvA,424
|
279
279
|
imio/smartweb/core/contents/sections/gallery/content.py,sha256=l6HLGVNi70gcEP-zz9OXi2WYtyd-V6LCAZH44a2Td_s,780
|
@@ -644,7 +644,7 @@ imio/smartweb/core/viewlets/odwb_widget_header.pt,sha256=bmtPkjfd40fwOqsCL1sQFCn
|
|
644
644
|
imio/smartweb/core/viewlets/offcanvas.pt,sha256=VfHFI9WoDqcm5nfJ-OTHACnJn0F5PfEE4FXZFzPM3JQ,613
|
645
645
|
imio/smartweb/core/viewlets/offcanvas.py,sha256=3VE2WJcvSKp3oAKYwGuwaHYMoK_83KMksMFDa75u52Y,129
|
646
646
|
imio/smartweb/core/viewlets/ogp_tag_header.pt,sha256=XRWkdZS2oI7W0X1oJSskpXS9dMmxSxSx_7XWb-Q2aBk,1007
|
647
|
-
imio/smartweb/core/viewlets/ogptags.py,sha256=
|
647
|
+
imio/smartweb/core/viewlets/ogptags.py,sha256=ZbrOVs7bqV5Trx6izolncbuXkaiZRmd6v6E8L8f9hEI,4902
|
648
648
|
imio/smartweb/core/viewlets/procedure.pt,sha256=gLwNuikgXsWMnBybKdFeKfkfDKnI3SlrU3y2z8sVt5k,602
|
649
649
|
imio/smartweb/core/viewlets/procedure.py,sha256=7nqBU_Sl5tcQaV_UNM-2BPLc8vogCzTO6kQlu4hwofI,633
|
650
650
|
imio/smartweb/core/viewlets/searchbox.pt,sha256=Wv0DbGTKif1z_SDl9-FQKIAPJcfFAHHO1qOtR-LtnR4,403
|
@@ -756,10 +756,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=cYuZykMIaLjr4KiLvmS4aY
|
|
756
756
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
|
757
757
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=5YDHwdaRNWFWOgyNd7YejoAdcDvnvAENo3Xn0GDT8P8,8941
|
758
758
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
759
|
-
imio.smartweb.core-1.2.
|
760
|
-
imio.smartweb.core-1.2.
|
761
|
-
imio.smartweb.core-1.2.
|
762
|
-
imio.smartweb.core-1.2.
|
763
|
-
imio.smartweb.core-1.2.
|
764
|
-
imio.smartweb.core-1.2.
|
765
|
-
imio.smartweb.core-1.2.
|
759
|
+
imio.smartweb.core-1.2.70.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
760
|
+
imio.smartweb.core-1.2.70.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
761
|
+
imio.smartweb.core-1.2.70.dist-info/METADATA,sha256=0Zn0IunXerb9nSN8LnLjZyDgO_c8kaK_NmzjCn-z0BI,57302
|
762
|
+
imio.smartweb.core-1.2.70.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
|
763
|
+
imio.smartweb.core-1.2.70.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
764
|
+
imio.smartweb.core-1.2.70.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
765
|
+
imio.smartweb.core-1.2.70.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.70.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|