imio.smartweb.core 1.2.68__py3-none-any.whl → 1.2.69__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/views.py +6 -0
- imio/smartweb/core/viewlets/ogptags.py +1 -1
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/METADATA +12 -1
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/RECORD +10 -10
- /imio.smartweb.core-1.2.68-py3.11-nspkg.pth → /imio.smartweb.core-1.2.69-py3.11-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/top_level.txt +0 -0
@@ -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()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.69
|
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,17 @@ Changelog
|
|
191
191
|
=========
|
192
192
|
|
193
193
|
|
194
|
+
1.2.69 (2024-09-10)
|
195
|
+
-------------------
|
196
|
+
|
197
|
+
- WEB-4121 : Fix missing auth for OGP tags
|
198
|
+
See commit 381a5e422d8705f86c434d2f0d4bd099938b9cc3
|
199
|
+
[laulaz]
|
200
|
+
|
201
|
+
- WEB-3995 : Add temporary debug annotation to verify section hash updates
|
202
|
+
[laulaz, remdub]
|
203
|
+
|
204
|
+
|
194
205
|
1.2.68 (2024-09-09)
|
195
206
|
-------------------
|
196
207
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.69-py3.11-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
|
@@ -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
|
@@ -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.69.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
760
|
+
imio.smartweb.core-1.2.69.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
761
|
+
imio.smartweb.core-1.2.69.dist-info/METADATA,sha256=Rr42PGSpAvsb8Cy-SNtijYntF_CaZssRSqMznYgHRU0,57108
|
762
|
+
imio.smartweb.core-1.2.69.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
763
|
+
imio.smartweb.core-1.2.69.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
764
|
+
imio.smartweb.core-1.2.69.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
765
|
+
imio.smartweb.core-1.2.69.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.68.dist-info → imio.smartweb.core-1.2.69.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|