imio.smartweb.core 1.2.55__py3-none-any.whl → 1.2.57__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.
@@ -59,23 +59,24 @@ class OgpTagsViewlet(HeaderViewlet):
59
59
  auth_source_url = ""
60
60
  endpoint = "@search"
61
61
  if IDirectoryView.providedBy(self.context):
62
+ params = "fullobjects=1"
62
63
  auth_source_url = DIRECTORY_URL
63
64
  client_id = os.environ.get("RESTAPI_DIRECTORY_CLIENT_ID")
64
65
  client_secret = os.environ.get("RESTAPI_DIRECTORY_CLIENT_SECRET")
65
66
  elif IEventsView.providedBy(self.context):
67
+ params = "metadata_fields=category&metadata_fields=local_category&metadata_fields=container_uid&metadata_fields=topics&metadata_fields=start&metadata_fields=end&metadata_fields=has_leadimage&metadata_fields=UID&fullobjects=1"
66
68
  auth_source_url = EVENTS_URL
67
69
  endpoint = "@events"
68
70
  client_id = os.environ.get("RESTAPI_EVENTS_CLIENT_ID")
69
71
  client_secret = os.environ.get("RESTAPI_EVENTS_CLIENT_SECRET")
70
72
  elif INewsView.providedBy(self.context):
73
+ params = "fullobjects=1"
71
74
  auth_source_url = NEWS_URL
72
75
  client_id = os.environ.get("RESTAPI_NEWS_CLIENT_ID")
73
76
  client_secret = os.environ.get("RESTAPI_NEWS_CLIENT_SECRET")
74
77
  auth = get_wca_token(client_id, client_secret)
75
- auth_source_url = (
76
- f"{auth_source_url}/{endpoint}?UID={uid}&fullobjects=1&include_items=true"
77
- )
78
- result_json = get_json(auth_source_url, auth=auth)
78
+ auth_source_url = f"{auth_source_url}/{endpoint}?UID={uid}&{params}"
79
+ result_json = get_json(auth_source_url, auth=None)
79
80
  if result_json:
80
81
  self._item = result_json["items"][0]
81
82
  self._set_image()
@@ -0,0 +1,3 @@
1
+ import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
2
+ import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
3
+ import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio', 'smartweb'));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio.smartweb', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio.smartweb', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio.smartweb', types.ModuleType('imio.smartweb'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p);m and setattr(sys.modules['imio'], 'smartweb', m)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.2.55
3
+ Version: 1.2.57
4
4
  Summary: Core product for iMio websites
5
5
  Home-page: https://github.com/imio/imio.smartweb.core
6
6
  Author: Christophe Boulanger
@@ -18,6 +18,8 @@ Classifier: Framework :: Plone :: 6.0
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
21
23
  Classifier: Operating System :: OS Independent
22
24
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
23
25
  Requires-Python: >=3.8
@@ -26,7 +28,7 @@ License-File: LICENSE.rst
26
28
  Requires-Dist: setuptools
27
29
  Requires-Dist: z3c.jbot
28
30
  Requires-Dist: z3c.unconfigure
29
- Requires-Dist: plone.api >=1.8.4
31
+ Requires-Dist: plone.api (>=1.8.4)
30
32
  Requires-Dist: plone.gallery
31
33
  Requires-Dist: plone.restapi
32
34
  Requires-Dist: plone.app.dexterity
@@ -48,7 +50,7 @@ Requires-Dist: imio.smartweb.common
48
50
  Requires-Dist: imio.smartweb.locales
49
51
  Provides-Extra: test
50
52
  Requires-Dist: plone.app.testing ; extra == 'test'
51
- Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
53
+ Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
52
54
  Requires-Dist: plone.app.contenttypes ; extra == 'test'
53
55
  Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
54
56
  Requires-Dist: plone.restapi[test] ; extra == 'test'
@@ -189,6 +191,24 @@ Changelog
189
191
  =========
190
192
 
191
193
 
194
+ 1.2.57 (2024-06-26)
195
+ -------------------
196
+
197
+ - WEB-4121 : Correct bad format
198
+ [boulch]
199
+
200
+
201
+ 1.2.56 (2024-06-25)
202
+ -------------------
203
+
204
+ - WEB-4121 : Fix ERROR : imio.events.core.contents.event.serializer, line 28, in get_container_uid
205
+ and fix WARNING : No such index: 'include_items'
206
+ [boulch]
207
+
208
+ - GHA tests on Python 3.8 3.9 and 3.10
209
+ [remdub]
210
+
211
+
192
212
  1.2.55 (2024-06-07)
193
213
  -------------------
194
214
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.core-1.2.55-py3.11-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
1
+ imio.smartweb.core-1.2.57-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
@@ -615,7 +615,7 @@ imio/smartweb/core/viewlets/odwb_widget_header.pt,sha256=bmtPkjfd40fwOqsCL1sQFCn
615
615
  imio/smartweb/core/viewlets/offcanvas.pt,sha256=VfHFI9WoDqcm5nfJ-OTHACnJn0F5PfEE4FXZFzPM3JQ,613
616
616
  imio/smartweb/core/viewlets/offcanvas.py,sha256=3VE2WJcvSKp3oAKYwGuwaHYMoK_83KMksMFDa75u52Y,129
617
617
  imio/smartweb/core/viewlets/ogp_tag_header.pt,sha256=XRWkdZS2oI7W0X1oJSskpXS9dMmxSxSx_7XWb-Q2aBk,1007
618
- imio/smartweb/core/viewlets/ogptags.py,sha256=V8iLXV3gXQZpTdbtefDmySitWpXznHKZmQcwmaxAxr4,4638
618
+ imio/smartweb/core/viewlets/ogptags.py,sha256=3Hgi412JCrRQTGHAgh9tPhSJxguNWPsHroWJyIhEqEI,4902
619
619
  imio/smartweb/core/viewlets/procedure.pt,sha256=gLwNuikgXsWMnBybKdFeKfkfDKnI3SlrU3y2z8sVt5k,602
620
620
  imio/smartweb/core/viewlets/procedure.py,sha256=7nqBU_Sl5tcQaV_UNM-2BPLc8vogCzTO6kQlu4hwofI,633
621
621
  imio/smartweb/core/viewlets/searchbox.pt,sha256=Wv0DbGTKif1z_SDl9-FQKIAPJcfFAHHO1qOtR-LtnR4,403
@@ -727,10 +727,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=cYuZykMIaLjr4KiLvmS4aY
727
727
  imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
728
728
  imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=5YDHwdaRNWFWOgyNd7YejoAdcDvnvAENo3Xn0GDT8P8,8941
729
729
  imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
730
- imio.smartweb.core-1.2.55.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
731
- imio.smartweb.core-1.2.55.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
732
- imio.smartweb.core-1.2.55.dist-info/METADATA,sha256=FwnI_JAATCU8m47Pyt22JfrpPExA1vVi5k0gVgbtnUo,54135
733
- imio.smartweb.core-1.2.55.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
734
- imio.smartweb.core-1.2.55.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
735
- imio.smartweb.core-1.2.55.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
736
- imio.smartweb.core-1.2.55.dist-info/RECORD,,
730
+ imio.smartweb.core-1.2.57.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
731
+ imio.smartweb.core-1.2.57.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
732
+ imio.smartweb.core-1.2.57.dist-info/METADATA,sha256=rjnofNBi7ogvGHvxxazSZqViSGwjr4mJzS6tzB1t2jM,54581
733
+ imio.smartweb.core-1.2.57.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
734
+ imio.smartweb.core-1.2.57.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
735
+ imio.smartweb.core-1.2.57.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
736
+ imio.smartweb.core-1.2.57.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,2 +0,0 @@
1
- import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
2
- import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio', 'smartweb'));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('imio.smartweb', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio.smartweb', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio.smartweb', types.ModuleType('imio.smartweb'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p);m and setattr(sys.modules['imio'], 'smartweb', m)