imio.smartweb.core 1.2.40__py3-none-any.whl → 1.2.41__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.
@@ -19,7 +19,7 @@ class BaseEndpoint(object):
19
19
  self.request = request
20
20
 
21
21
  def __call__(self):
22
- results = get_json(self.query_url)
22
+ results = get_json(self.query_url, timeout=20)
23
23
  return results
24
24
 
25
25
  @property
@@ -13,7 +13,7 @@ from zope.interface import Interface
13
13
  class BaseEventsEndpoint(BaseEndpoint):
14
14
  def __call__(self):
15
15
  results = super(BaseEventsEndpoint, self).__call__()
16
- if not results.get("items"):
16
+ if not results or not results.get("items"):
17
17
  return results
18
18
  orientation = self.context.orientation
19
19
  for result in results["items"]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.2.40
3
+ Version: 1.2.41
4
4
  Summary: Core product for iMio websites
5
5
  Home-page: https://github.com/imio/imio.smartweb.core
6
6
  Author: Christophe Boulanger
@@ -189,6 +189,13 @@ Changelog
189
189
  =========
190
190
 
191
191
 
192
+ 1.2.41 (2024-04-04)
193
+ -------------------
194
+
195
+ - Set higher timeout because retrieving some datas can take some time
196
+ [boulch]
197
+
198
+
192
199
  1.2.40 (2024-04-02)
193
200
  -------------------
194
201
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.core-1.2.40-py3.10-nspkg.pth,sha256=wnCUSUElqssZ5FI3x-9HqwD229HQ-bAuPoDUNJHmMtU,1684
1
+ imio.smartweb.core-1.2.41-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
@@ -191,7 +191,7 @@ imio/smartweb/core/contents/pages/procedure/content.py,sha256=e_kv7YsRF0vblfpxqq
191
191
  imio/smartweb/core/contents/pages/procedure/utils.py,sha256=EATKvK72QPQheLXCXCoADYMjA3UfgPtkOPKdqnEyX64,1291
192
192
  imio/smartweb/core/contents/pages/procedure/view.py,sha256=UeZwtdn20lCo7qbqqPcsD9LL69vNTq4m_wXB4nv8jMo,408
193
193
  imio/smartweb/core/contents/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
194
- imio/smartweb/core/contents/rest/base.py,sha256=aX-wzmaT-ZP3sozu-BpRkZe-dNSL0QuLK0L7WxF40LM,2416
194
+ imio/smartweb/core/contents/rest/base.py,sha256=8VWBC7EKJUW6rNVH8DLD4JWGCHY7lDSQ-xJtEOsdBW0,2428
195
195
  imio/smartweb/core/contents/rest/configure.zcml,sha256=vANiA3brvm8rsJIUSVNf0BdlEnejpEGXoC82-hpxKkA,433
196
196
  imio/smartweb/core/contents/rest/traversal.py,sha256=KLNGhUmvTAzaRqSIzT3B28HgMBK4vcNV75AfyIesjN8,540
197
197
  imio/smartweb/core/contents/rest/utils.py,sha256=3R8BSRBzYCTL5sBtVraoHvEwhN6e1PyUY5mjczKLlFk,3112
@@ -205,7 +205,7 @@ imio/smartweb/core/contents/rest/directory/view.py,sha256=rN4k7sqrd32TNMBBOc7RQe
205
205
  imio/smartweb/core/contents/rest/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
206
206
  imio/smartweb/core/contents/rest/events/configure.zcml,sha256=ufUHdGMkGd57zgZ4_DxvoK4Zn7_AC_A3_TnLkmdYRhs,1017
207
207
  imio/smartweb/core/contents/rest/events/content.py,sha256=4T0dCsoQx6c1uxISEeqdUggI0q4YE80tQimhALwRmug,1665
208
- imio/smartweb/core/contents/rest/events/endpoint.py,sha256=OOIe3oOpAamtoKwja1cO_xyvDEf-HjXdFOJfGz5KT0k,2626
208
+ imio/smartweb/core/contents/rest/events/endpoint.py,sha256=FDbcZYGMjUu9NwO8KBAenAuISGQbxnBQ5vvTeOLRltU,2641
209
209
  imio/smartweb/core/contents/rest/events/view.pt,sha256=9q_Wk5vIcvP9zISBv8OrdeTB3kJoPCT0DydZ9qBFF-Q,986
210
210
  imio/smartweb/core/contents/rest/events/view.py,sha256=WiqrMT_fS6JIRyBiDMmcgsHKCupI-CfYQh12yaZZQE8,694
211
211
  imio/smartweb/core/contents/rest/news/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -719,10 +719,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=x9xi6Ym29ENfIdeysHeh0g
719
719
  imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
720
720
  imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=SmhBsvncTNx95019NNz5uAm1foKqeKjcC5i9ZMo1G3E,6629
721
721
  imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
722
- imio.smartweb.core-1.2.40.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
723
- imio.smartweb.core-1.2.40.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
724
- imio.smartweb.core-1.2.40.dist-info/METADATA,sha256=Xx1-w_UMWUBtLW243TWPE4-DNPvH8xeooI4xvIYyvBc,51176
725
- imio.smartweb.core-1.2.40.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
726
- imio.smartweb.core-1.2.40.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
727
- imio.smartweb.core-1.2.40.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
728
- imio.smartweb.core-1.2.40.dist-info/RECORD,,
722
+ imio.smartweb.core-1.2.41.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
723
+ imio.smartweb.core-1.2.41.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
724
+ imio.smartweb.core-1.2.41.dist-info/METADATA,sha256=OXghS94hSzjWYGl2V84xbHpBWnKF4ZIRaAR5XxfQSxc,51300
725
+ imio.smartweb.core-1.2.41.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
726
+ imio.smartweb.core-1.2.41.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
727
+ imio.smartweb.core-1.2.41.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
728
+ imio.smartweb.core-1.2.41.dist-info/RECORD,,