imio.smartweb.core 1.2.69__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.
@@ -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()
@@ -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, 8)
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.69
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,16 @@ 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
+
194
204
  1.2.69 (2024-09-10)
195
205
  -------------------
196
206
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.core-1.2.69-py3.11-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
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=zA2hmTQFSTzwvXVkx4XJCild8XI0k9cMWIwE7Ga-7AA,22809
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
@@ -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=NcnsutNKlCRWdGk9kM2fuDTtzP7i8E4mTpJ86Y4PGG8,2424
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
@@ -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.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,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5