imio.smartweb.core 1.2.81__py3-none-any.whl → 1.2.84__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.
@@ -48,6 +48,7 @@ class BaseRequestForwarder(Service):
48
48
  else:
49
49
  token = get_wca_token(self.client_id, self.client_secret)
50
50
  headers = {"Accept": "application/json", "Authorization": token}
51
+ self.request.form.pop("wcatoken", None)
51
52
  if is_log_active():
52
53
  logger.info("======== Forwarding request to AUTHENTIC SOURCE =========")
53
54
  logger.info(f"url to forward : {url} ({method})")
@@ -59,21 +59,21 @@ class TestRedirectToMainReactView(ImioSmartwebTestCase):
59
59
  transaction.commit()
60
60
  rest_view_url = v.absolute_url()
61
61
  browser.open(f"{self.portal_url}/@@{k}_view")
62
- self.assertEquals(browser.url, rest_view_url)
62
+ self.assertEqual(browser.url, rest_view_url)
63
63
 
64
64
  v = api.content.move(v, folder)
65
65
  transaction.commit()
66
66
  rest_view_url = v.absolute_url()
67
67
  browser.open(f"{self.portal_url}/@@{k}_view")
68
- self.assertEquals(browser.url, rest_view_url)
68
+ self.assertEqual(browser.url, rest_view_url)
69
69
 
70
70
  obj = api_lng.translate(v, target_language="de")
71
71
  api.content.transition(obj, "publish")
72
72
  transaction.commit()
73
73
  browser.open(f"{self.portal_url}/@@{k}_view?language=de")
74
- self.assertEquals(browser.url, obj.absolute_url())
74
+ self.assertEqual(browser.url, obj.absolute_url())
75
75
 
76
76
  api.content.delete(v)
77
77
  transaction.commit()
78
78
  browser.open(f"{self.portal_url}/@@{k}_view")
79
- self.assertEquals(browser.url, self.portal_url)
79
+ self.assertEqual(browser.url, self.portal_url)
@@ -59,7 +59,8 @@ def concat_voca_title(title1, title2):
59
59
 
60
60
 
61
61
  def get_json(url, auth=None, timeout=5):
62
- headers = {"Accept": "application/json"}
62
+ language = api.portal.get_current_language()
63
+ headers = {"Accept": "application/json", "Cookie": f"I18N_LANGUAGE={language}"}
63
64
  if auth is not None:
64
65
  headers["Authorization"] = auth
65
66
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.2.81
3
+ Version: 1.2.84
4
4
  Summary: Core product for iMio websites
5
5
  Home-page: https://github.com/imio/imio.smartweb.core
6
6
  Author: Christophe Boulanger
@@ -17,18 +17,18 @@ Classifier: Framework :: Plone :: Addon
17
17
  Classifier: Framework :: Plone :: 6.0
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
21
- Classifier: Programming Language :: Python :: 3.9
22
20
  Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
23
  Classifier: Operating System :: OS Independent
24
24
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
25
- Requires-Python: >=3.8
25
+ Requires-Python: >=3.10
26
26
  License-File: LICENSE.GPL
27
27
  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
@@ -49,14 +49,14 @@ Requires-Dist: more-itertools
49
49
  Requires-Dist: imio.smartweb.common
50
50
  Requires-Dist: imio.smartweb.locales
51
51
  Provides-Extra: test
52
- Requires-Dist: plone.app.testing ; extra == 'test'
53
- Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
54
- Requires-Dist: plone.app.contenttypes ; extra == 'test'
55
- Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
56
- Requires-Dist: plone.restapi[test] ; extra == 'test'
57
- Requires-Dist: requests-mock ; extra == 'test'
58
- Requires-Dist: beautifulsoup4 ; extra == 'test'
59
- Requires-Dist: freezegun ; extra == 'test'
52
+ Requires-Dist: plone.app.testing; extra == "test"
53
+ Requires-Dist: plone.testing>=5.0.0; extra == "test"
54
+ Requires-Dist: plone.app.contenttypes; extra == "test"
55
+ Requires-Dist: plone.app.robotframework[debug]; extra == "test"
56
+ Requires-Dist: plone.restapi[test]; extra == "test"
57
+ Requires-Dist: requests-mock; extra == "test"
58
+ Requires-Dist: beautifulsoup4; extra == "test"
59
+ Requires-Dist: freezegun; extra == "test"
60
60
 
61
61
  .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
62
62
  If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
@@ -191,6 +191,30 @@ Changelog
191
191
  =========
192
192
 
193
193
 
194
+ 1.2.84 (2025-01-29)
195
+ -------------------
196
+
197
+ - Update Python classifiers to be compatible with Python 3.12
198
+ [remdub]
199
+
200
+
201
+ 1.2.83 (2025-01-29)
202
+ -------------------
203
+
204
+ - Migrate to Plone 6.0.14
205
+ [boulch]
206
+
207
+ - WEB-4206 : Remove wcatoken from query parameters when forwarding requests
208
+ [remdub]
209
+
210
+
211
+ 1.2.82 (2025-01-23)
212
+ -------------------
213
+
214
+ - WEB-4153 : Add language cookie to python requests to avoid cache problems
215
+ [remdub]
216
+
217
+
194
218
  1.2.81 (2025-01-15)
195
219
  -------------------
196
220
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.core-1.2.81-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
1
+ imio.smartweb.core-1.2.84-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
@@ -12,7 +12,7 @@ imio/smartweb/core/subscribers.py,sha256=zOmwTw0XvE6_bdoZI7qQln_W__7MxXCnKh6QwNK
12
12
  imio/smartweb/core/subscribers.zcml,sha256=BnrxZp4AfsRYreYHsJJxKgPQZJ-wpNM2XnDTuDUbBkA,1616
13
13
  imio/smartweb/core/testing.py,sha256=t0Y3t3FXX2RjgklcRzHT37AjKbMKL3ZjjT3d2UhQm7A,3636
14
14
  imio/smartweb/core/testing.zcml,sha256=VyKjWW2QHYuUYKkGUvtsdFI_Pa7Wcp1yBBDla112eMc,172
15
- imio/smartweb/core/utils.py,sha256=krc0msUa9cHIALgT1RpqMXAslusg3FswRy4aY5o6oIo,7597
15
+ imio/smartweb/core/utils.py,sha256=dQzbLYiJh55dtQ0qekQNr2tPCiXVABiMPjTpcf2zj3U,7685
16
16
  imio/smartweb/core/vocabularies.py,sha256=ZzdnK7m0dPogoKSrtdTjsxCQjaSqgVDAL9YPWMOHync,22905
17
17
  imio/smartweb/core/vocabularies.zcml,sha256=KSH7JWlAJtKawLvfmsztZzE_AK1JR6B5udY6tleY2cQ,5904
18
18
  imio/smartweb/core/behaviors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -394,7 +394,7 @@ imio/smartweb/core/profiles/testing/types/imio.smartweb.NewsView.xml,sha256=6Rpf
394
394
  imio/smartweb/core/profiles/uninstall/browserlayer.xml,sha256=K8KnZFW9E6Hwi61Z6XZlXOjUpAKzJR6HjmjoOjFEWrk,128
395
395
  imio/smartweb/core/profiles/validation/contentrules.xml,sha256=QyX3E0ihDOMhaJPrKPRqRiCUvPoghs3fwYOj_eNtbqw,4626
396
396
  imio/smartweb/core/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
397
- imio/smartweb/core/rest/authentic_sources.py,sha256=ZH7kHNAow_t6pnEObZ_x2jfnHi0pZOrr9OO6MQHiG_8,4957
397
+ imio/smartweb/core/rest/authentic_sources.py,sha256=GesGFal1TsEN6LRwI_idcpoxJ6bBzYYxV4Lfk2plqtQ,5005
398
398
  imio/smartweb/core/rest/configure.zcml,sha256=3tEU99M_deyoRN0YeIVQmPk7NL88gjYtXZOT8QmSbN4,2891
399
399
  imio/smartweb/core/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
400
400
  imio/smartweb/core/tests/test_banner.py,sha256=83Q86ezLMJVwCLxoJddmlE9GKR3h6Qyb-rbqVSFc8a0,7838
@@ -421,7 +421,7 @@ imio/smartweb/core/tests/test_page.py,sha256=1dD9M_6nwS6M2OuyWmT5cPq5qnxnog3tcqF
421
421
  imio/smartweb/core/tests/test_plausibleview.py,sha256=G1ryfnz3TuQBG8VFO5KzEylT5DFABW58PQuuvPq_ccY,3229
422
422
  imio/smartweb/core/tests/test_portal_page.py,sha256=hIqg4eb91o8BsSj7eSKdvoxehzOXt8bzpg1o5ej__zg,7215
423
423
  imio/smartweb/core/tests/test_procedure.py,sha256=0w8phOwYfpp9vb3KDsnwjX8AhQXWdodA06W4koderQo,6474
424
- imio/smartweb/core/tests/test_redirect_to_main_react_view.py,sha256=k4gU6xBIA5m8Vrb27rt8nWCs8ix2Lf9j49WnIXl4eO0,2990
424
+ imio/smartweb/core/tests/test_redirect_to_main_react_view.py,sha256=3Pa_4BAmyz67onEaHochsubdEqszAMf2j0lkscEY50c,2986
425
425
  imio/smartweb/core/tests/test_rest.py,sha256=t7dp7YWUCKR75tsU3vVOzAy9HivGBWuMJoeMpuKOXbM,27374
426
426
  imio/smartweb/core/tests/test_robot.py,sha256=NQ7AkN4tEva3bgGjMxmyqY0zIo4pJPnPOwnD9hmrTVI,926
427
427
  imio/smartweb/core/tests/test_search.py,sha256=VryeRI4_5CvnStKOoNoG95M2WTy7Lyy_AhHIDG40M14,2182
@@ -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.81.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
760
- imio.smartweb.core-1.2.81.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
761
- imio.smartweb.core-1.2.81.dist-info/METADATA,sha256=w375PAw3CwzcYY_CVYg_m7p_CD0RkSPSrpucZU_dySI,59134
762
- imio.smartweb.core-1.2.81.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
763
- imio.smartweb.core-1.2.81.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
764
- imio.smartweb.core-1.2.81.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
765
- imio.smartweb.core-1.2.81.dist-info/RECORD,,
759
+ imio.smartweb.core-1.2.84.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
760
+ imio.smartweb.core-1.2.84.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
761
+ imio.smartweb.core-1.2.84.dist-info/METADATA,sha256=alCP5U7_-Zpi5R2qfvYdJhnKoWIFvNdh6qKFJlN7gbI,59541
762
+ imio.smartweb.core-1.2.84.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
763
+ imio.smartweb.core-1.2.84.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
764
+ imio.smartweb.core-1.2.84.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
765
+ imio.smartweb.core-1.2.84.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5