imio.smartweb.core 1.2.62__py3-none-any.whl → 1.2.64__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/external_content/views.py +5 -4
- imio/smartweb/core/tests/test_section_external_content.py +2 -2
- imio.smartweb.core-1.2.64-py3.10-nspkg.pth +3 -0
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/METADATA +17 -3
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/RECORD +10 -10
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/WHEEL +1 -1
- imio.smartweb.core-1.2.62-py3.8-nspkg.pth +0 -2
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/top_level.txt +0 -0
@@ -139,7 +139,7 @@ class EaglebePlugin(BasePlugin):
|
|
139
139
|
|
140
140
|
class EllohaPlugin(BasePlugin):
|
141
141
|
def __call__(self, parts, config={}):
|
142
|
-
if "
|
142
|
+
if "elloha.com" in parts.netloc:
|
143
143
|
self.parts = parts
|
144
144
|
self.config = config
|
145
145
|
return self
|
@@ -173,14 +173,15 @@ class EllohaPlugin(BasePlugin):
|
|
173
173
|
cw1 = res.get("constellationwidgetcontainer")
|
174
174
|
cw2 = cw1.replace("-", "")
|
175
175
|
idoi = res.get("idoi")
|
176
|
+
internal_url = "https://reservation.elloha.com"
|
176
177
|
return (
|
177
|
-
f'<div class="elloha">'
|
178
|
+
f'<div class="elloha" style="position:relative;">'
|
178
179
|
f'<div id="ConstellationWidgetContainer{cw1}" '
|
179
180
|
f'style="width:100%" data-id-projet="{cw2}">...</div></div>'
|
180
|
-
f'<script type="text/javascript" src="{
|
181
|
+
f'<script type="text/javascript" src="{internal_url}/Scripts/widget-loader.min.js?v=42"></script>'
|
181
182
|
f'<script type="text/javascript">var constellationWidgetUrl{cw2}, '
|
182
183
|
f"constellationTypeModule{cw2};"
|
183
|
-
f'constellationWidgetUrl{cw2} = "
|
184
|
+
f'constellationWidgetUrl{cw2} = "{internal_url}/Widget/BookingEngine/{cw1}?idoi={idoi}&culture=fr-FR";'
|
184
185
|
f'constellationTypeModule{cw2}=1; constellationWidgetLoad("ConstellationWidgetContainer{cw1}");'
|
185
186
|
f'constellationWidgetAddEvent(window, "resize", function () {{constellationWidgetSetAppearance("ConstellationWidgetContainer{cw1}");}});</script>'
|
186
187
|
)
|
@@ -72,7 +72,7 @@ class TestSectionExternalContent(ImioSmartwebTestCase):
|
|
72
72
|
"Idoi" : "22222222-2222-2222-2222-222222222222"
|
73
73
|
}"""
|
74
74
|
section_view = queryMultiAdapter((sec, self.request), name="view")
|
75
|
-
result = '<div class="elloha"><div id="ConstellationWidgetContainer11111111-1111-1111-1111-111111111111" style="width:100%" data-id-projet="11111111111111111111111111111111">...</div></div><script type="text/javascript" src="https://reservation.elloha.com/Scripts/widget-loader.min.js?v=42
|
75
|
+
result = '<div class="elloha"><div id="ConstellationWidgetContainer11111111-1111-1111-1111-111111111111" style="width:100%" data-id-projet="11111111111111111111111111111111">...</div></div><script type="text/javascript" src="https://reservation.elloha.com/Scripts/widget-loader.min.js?v=42"></script><script type="text/javascript">var constellationWidgetUrl11111111111111111111111111111111, constellationTypeModule11111111111111111111111111111111;constellationWidgetUrl11111111111111111111111111111111 = "https://reservation.elloha.com/Widget/BookingEngine/11111111-1111-1111-1111-111111111111?idoi=22222222-2222-2222-2222-222222222222&culture=fr-FR";constellationTypeModule11111111111111111111111111111111=1; constellationWidgetLoad("ConstellationWidgetContainer11111111-1111-1111-1111-111111111111");constellationWidgetAddEvent(window, "resize", function () {constellationWidgetSetAppearance("ConstellationWidgetContainer11111111-1111-1111-1111-111111111111");});</script>'
|
76
76
|
self.assertEqual(section_view.contents, result)
|
77
77
|
|
78
78
|
# good extra params / dict keys are case insensitive
|
@@ -81,7 +81,7 @@ class TestSectionExternalContent(ImioSmartwebTestCase):
|
|
81
81
|
"IDOI" : "22222222-2222-2222-2222-222222222222"
|
82
82
|
}"""
|
83
83
|
section_view = queryMultiAdapter((sec, self.request), name="view")
|
84
|
-
result = '<div class="elloha"><div id="ConstellationWidgetContainer11111111-1111-1111-1111-111111111111" style="width:100%" data-id-projet="11111111111111111111111111111111">...</div></div><script type="text/javascript" src="https://reservation.elloha.com/Scripts/widget-loader.min.js?v=42
|
84
|
+
result = '<div class="elloha"><div id="ConstellationWidgetContainer11111111-1111-1111-1111-111111111111" style="width:100%" data-id-projet="11111111111111111111111111111111">...</div></div><script type="text/javascript" src="https://reservation.elloha.com/Scripts/widget-loader.min.js?v=42"></script><script type="text/javascript">var constellationWidgetUrl11111111111111111111111111111111, constellationTypeModule11111111111111111111111111111111;constellationWidgetUrl11111111111111111111111111111111 = "https://reservation.elloha.com/Widget/BookingEngine/11111111-1111-1111-1111-111111111111?idoi=22222222-2222-2222-2222-222222222222&culture=fr-FR";constellationTypeModule11111111111111111111111111111111=1; constellationWidgetLoad("ConstellationWidgetContainer11111111-1111-1111-1111-111111111111");constellationWidgetAddEvent(window, "resize", function () {constellationWidgetSetAppearance("ConstellationWidgetContainer11111111-1111-1111-1111-111111111111");});</script>'
|
85
85
|
self.assertEqual(section_view.contents, result)
|
86
86
|
|
87
87
|
# with bad params
|
@@ -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.64
|
4
4
|
Summary: Core product for iMio websites
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.core
|
6
6
|
Author: Christophe Boulanger
|
@@ -28,7 +28,7 @@ License-File: LICENSE.rst
|
|
28
28
|
Requires-Dist: setuptools
|
29
29
|
Requires-Dist: z3c.jbot
|
30
30
|
Requires-Dist: z3c.unconfigure
|
31
|
-
Requires-Dist: plone.api >=1.8.4
|
31
|
+
Requires-Dist: plone.api (>=1.8.4)
|
32
32
|
Requires-Dist: plone.gallery
|
33
33
|
Requires-Dist: plone.restapi
|
34
34
|
Requires-Dist: plone.app.dexterity
|
@@ -50,7 +50,7 @@ Requires-Dist: imio.smartweb.common
|
|
50
50
|
Requires-Dist: imio.smartweb.locales
|
51
51
|
Provides-Extra: test
|
52
52
|
Requires-Dist: plone.app.testing ; extra == 'test'
|
53
|
-
Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
|
53
|
+
Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
|
54
54
|
Requires-Dist: plone.app.contenttypes ; extra == 'test'
|
55
55
|
Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
|
56
56
|
Requires-Dist: plone.restapi[test] ; extra == 'test'
|
@@ -191,6 +191,20 @@ Changelog
|
|
191
191
|
=========
|
192
192
|
|
193
193
|
|
194
|
+
1.2.64 (2024-08-05)
|
195
|
+
-------------------
|
196
|
+
|
197
|
+
- SUP-38386 : Fix style for elloha to avoid absolute position
|
198
|
+
[boulch]
|
199
|
+
|
200
|
+
|
201
|
+
1.2.63 (2024-07-31)
|
202
|
+
-------------------
|
203
|
+
|
204
|
+
- SUP-38386 : Update "elloha" plugin in external content section. Agent can set url field to visitwallonia.elloha.com
|
205
|
+
[boulch]
|
206
|
+
|
207
|
+
|
194
208
|
1.2.62 (2024-07-22)
|
195
209
|
-------------------
|
196
210
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.64-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
|
@@ -266,7 +266,7 @@ imio/smartweb/core/contents/sections/external_content/view_arcgis.pt,sha256=mWxe
|
|
266
266
|
imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt,sha256=ydk9Q31PUBIeEjIvK0KoHBz0MMTRycLVJLU2mrtKZg4,1922
|
267
267
|
imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt,sha256=5Oqjl1FTxE7NJ3rdHX0Cs1Iq4H9vE3LkTMd6W1IciqI,2742
|
268
268
|
imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt,sha256=VNujhC1A8HcEZxUn2QQpnFCieDFzvnbuEeY0rn68Kz4,701
|
269
|
-
imio/smartweb/core/contents/sections/external_content/views.py,sha256=
|
269
|
+
imio/smartweb/core/contents/sections/external_content/views.py,sha256=KPOjV4HBXHRzIeh7zG81ijtkmCsEMR8C4y_62S8Afqg,13584
|
270
270
|
imio/smartweb/core/contents/sections/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
271
271
|
imio/smartweb/core/contents/sections/files/configure.zcml,sha256=DyyHzDEKLWmOywbV08Zf7bvf0At5jyAeDfZ8PCK5Rog,501
|
272
272
|
imio/smartweb/core/contents/sections/files/content.py,sha256=60wt1VguNqKBu3fyuuG2dcrHC-9FjxTf96af2IqU3fw,871
|
@@ -422,7 +422,7 @@ imio/smartweb/core/tests/test_robot.py,sha256=NQ7AkN4tEva3bgGjMxmyqY0zIo4pJPnPOw
|
|
422
422
|
imio/smartweb/core/tests/test_search.py,sha256=VryeRI4_5CvnStKOoNoG95M2WTy7Lyy_AhHIDG40M14,2182
|
423
423
|
imio/smartweb/core/tests/test_section_contact.py,sha256=vwCcls19KSiciaAXYG7C3SwOMWao8VGcnLvsU8ikxB0,23166
|
424
424
|
imio/smartweb/core/tests/test_section_events.py,sha256=7eP-HmXp0D3gvOrjVpzVPmV9nF_PKERnmOGz1G3Z0l0,8641
|
425
|
-
imio/smartweb/core/tests/test_section_external_content.py,sha256=
|
425
|
+
imio/smartweb/core/tests/test_section_external_content.py,sha256=m3hoPEGtRQVKGQyUbXqXQu4qBcuoJFrFJzQVW213jVM,6592
|
426
426
|
imio/smartweb/core/tests/test_section_news.py,sha256=PmgcbnoKruI6U4m4-33ueRSjKk2G15N50uGe_2rwHMc,8382
|
427
427
|
imio/smartweb/core/tests/test_section_sendinblue.py,sha256=UmmKo33T9feelumxqeejM4HG4oLRPKJkbB8hkLO144E,2661
|
428
428
|
imio/smartweb/core/tests/test_sections.py,sha256=7OSR69aS9dD5_ymlae9bMN9wFZaNP2Gpx-lLKBfsmsc,24008
|
@@ -743,10 +743,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=cYuZykMIaLjr4KiLvmS4aY
|
|
743
743
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
|
744
744
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=5YDHwdaRNWFWOgyNd7YejoAdcDvnvAENo3Xn0GDT8P8,8941
|
745
745
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
746
|
-
imio.smartweb.core-1.2.
|
747
|
-
imio.smartweb.core-1.2.
|
748
|
-
imio.smartweb.core-1.2.
|
749
|
-
imio.smartweb.core-1.2.
|
750
|
-
imio.smartweb.core-1.2.
|
751
|
-
imio.smartweb.core-1.2.
|
752
|
-
imio.smartweb.core-1.2.
|
746
|
+
imio.smartweb.core-1.2.64.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
747
|
+
imio.smartweb.core-1.2.64.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
748
|
+
imio.smartweb.core-1.2.64.dist-info/METADATA,sha256=oyOlbIlMTyJ1y9bOFRcAGvRn3xoqoNDNfPIOvDj_DvY,55627
|
749
|
+
imio.smartweb.core-1.2.64.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
750
|
+
imio.smartweb.core-1.2.64.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
751
|
+
imio.smartweb.core-1.2.64.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
752
|
+
imio.smartweb.core-1.2.64.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.62.dist-info → imio.smartweb.core-1.2.64.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|