imio.smartweb.core 1.2.55__py3-none-any.whl → 1.2.56__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/viewlets/ogptags.py +13 -4
- imio.smartweb.core-1.2.56-py3.10-nspkg.pth +3 -0
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/METADATA +16 -3
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/RECORD +9 -9
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/WHEEL +1 -1
- imio.smartweb.core-1.2.55-py3.11-nspkg.pth +0 -2
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/top_level.txt +0 -0
@@ -59,23 +59,32 @@ 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&
|
68
|
+
metadata_fields=local_category&
|
69
|
+
metadata_fields=container_uid&
|
70
|
+
metadata_fields=topics&
|
71
|
+
metadata_fields=start&
|
72
|
+
metadata_fields=end&
|
73
|
+
metadata_fields=has_leadimage&
|
74
|
+
metadata_fields=UID&
|
75
|
+
fullobjects=1"""
|
66
76
|
auth_source_url = EVENTS_URL
|
67
77
|
endpoint = "@events"
|
68
78
|
client_id = os.environ.get("RESTAPI_EVENTS_CLIENT_ID")
|
69
79
|
client_secret = os.environ.get("RESTAPI_EVENTS_CLIENT_SECRET")
|
70
80
|
elif INewsView.providedBy(self.context):
|
81
|
+
params = "fullobjects=1"
|
71
82
|
auth_source_url = NEWS_URL
|
72
83
|
client_id = os.environ.get("RESTAPI_NEWS_CLIENT_ID")
|
73
84
|
client_secret = os.environ.get("RESTAPI_NEWS_CLIENT_SECRET")
|
74
85
|
auth = get_wca_token(client_id, client_secret)
|
75
|
-
auth_source_url =
|
76
|
-
|
77
|
-
)
|
78
|
-
result_json = get_json(auth_source_url, auth=auth)
|
86
|
+
auth_source_url = f"{auth_source_url}/{endpoint}?UID={uid}&{params}"
|
87
|
+
result_json = get_json(auth_source_url, auth=None)
|
79
88
|
if result_json:
|
80
89
|
self._item = result_json["items"][0]
|
81
90
|
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.
|
3
|
+
Version: 1.2.56
|
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,17 @@ Changelog
|
|
189
191
|
=========
|
190
192
|
|
191
193
|
|
194
|
+
1.2.56 (2024-06-25)
|
195
|
+
-------------------
|
196
|
+
|
197
|
+
- WEB-4121 : Fix ERROR : imio.events.core.contents.event.serializer, line 28, in get_container_uid
|
198
|
+
and fix WARNING : No such index: 'include_items'
|
199
|
+
[boulch]
|
200
|
+
|
201
|
+
- GHA tests on Python 3.8 3.9 and 3.10
|
202
|
+
[remdub]
|
203
|
+
|
204
|
+
|
192
205
|
1.2.55 (2024-06-07)
|
193
206
|
-------------------
|
194
207
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.56-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=
|
618
|
+
imio/smartweb/core/viewlets/ogptags.py,sha256=jl9eT7I4Hf92dJ5NnIk7pkPMU6pQ010zQA1h5BubW1A,5010
|
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.
|
731
|
-
imio.smartweb.core-1.2.
|
732
|
-
imio.smartweb.core-1.2.
|
733
|
-
imio.smartweb.core-1.2.
|
734
|
-
imio.smartweb.core-1.2.
|
735
|
-
imio.smartweb.core-1.2.
|
736
|
-
imio.smartweb.core-1.2.
|
730
|
+
imio.smartweb.core-1.2.56.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
731
|
+
imio.smartweb.core-1.2.56.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
732
|
+
imio.smartweb.core-1.2.56.dist-info/METADATA,sha256=MyvVVHJn-JYCKYB7qPEJdYsbKNZh-DUCsymrpp6Qt8U,54495
|
733
|
+
imio.smartweb.core-1.2.56.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
734
|
+
imio.smartweb.core-1.2.56.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
735
|
+
imio.smartweb.core-1.2.56.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
736
|
+
imio.smartweb.core-1.2.56.dist-info/RECORD,,
|
@@ -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)
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.55.dist-info → imio.smartweb.core-1.2.56.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|