imio.smartweb.core 1.2.43__py3-none-any.whl → 1.2.44__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.
@@ -82,16 +82,17 @@ class SectionView(BrowserView):
82
82
 
83
83
  @property
84
84
  def save_size(self):
85
- if not self.request.form.get("sectionSize"):
85
+ select_name = f"select_{self.context.UID()}"
86
+ if not self.request.form.get(select_name):
86
87
  return json.dumps({})
87
- section_size = self.request.form.get("sectionSize")
88
+ section_size = self.request.form.get(select_name)
88
89
  context = aq_inner(self.context)
89
90
  context.bootstrap_css_class = section_size
90
91
  context.reindexObject()
91
92
  current_lang = get_current_language(self.context)[:2]
92
93
  size_txt = translate_vocabulary_term(
93
94
  "imio.smartweb.vocabulary.BootstrapCSS",
94
- self.request.form.get("sectionSize"),
95
+ section_size,
95
96
  current_lang,
96
97
  )
97
98
  return json.dumps({"id": section_size, "title": size_txt})
@@ -105,8 +105,8 @@ class TestSections(ImioSmartwebTestCase):
105
105
  (self.section_text, self.request), name="view"
106
106
  )
107
107
  self.assertEqual(section_text_view.save_size, json.dumps({}))
108
-
109
- self.request.form["sectionSize"] = select.value[0]
108
+ select_name = f"select_{self.section_text.UID()}"
109
+ self.request.form[select_name] = select.value[0]
110
110
  self.request.form["_authenticator"] = createToken()
111
111
  section_text_view = getMultiAdapter(
112
112
  (self.section_text, self.request), name="view"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.2.43
3
+ Version: 1.2.44
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.44 (2024-04-18)
193
+ -------------------
194
+
195
+ - WEB-4099 : Fix select name
196
+ [boulch]
197
+
198
+
192
199
  1.2.43 (2024-04-18)
193
200
  -------------------
194
201
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.core-1.2.43-py3.10-nspkg.pth,sha256=wnCUSUElqssZ5FI3x-9HqwD229HQ-bAuPoDUNJHmMtU,1684
1
+ imio.smartweb.core-1.2.44-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
@@ -222,7 +222,7 @@ imio/smartweb/core/contents/sections/base.py,sha256=2e3lIG_RGGFAshBEkTNG97OReAnn
222
222
  imio/smartweb/core/contents/sections/configure.zcml,sha256=bUqipFja2372GWcS029GK4--1vtYG5C947VI6LZqLyc,2754
223
223
  imio/smartweb/core/contents/sections/macros.pt,sha256=1Jk_bbaBCqfIBcuM4EoO94aBD7jcXgvmozBGs2yQY8Y,5541
224
224
  imio/smartweb/core/contents/sections/subscriber.py,sha256=WM7nEZVPOkmyT1GfkWGDWwLhuhUYaTnlBr6BJVqUJMk,642
225
- imio/smartweb/core/contents/sections/views.py,sha256=NdD8dJKYhnruXhxwguoeoScI3bT04wjfR2lVAJaEfGs,5046
225
+ imio/smartweb/core/contents/sections/views.py,sha256=cmtvPsyiAWEBf3Vi3tZGzmZQDwK8Ldxa_RXhbVGiA8Q,5071
226
226
  imio/smartweb/core/contents/sections/collection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  imio/smartweb/core/contents/sections/collection/configure.zcml,sha256=Ak4UbKFjogWZad6-5_y6oSx8tWXt3nN7bEdKXG7pQCI,920
228
228
  imio/smartweb/core/contents/sections/collection/content.py,sha256=DMmU9rIaRlbRjIaot5RHXu59vJmAbun0FCmyahWhBCM,2379
@@ -388,7 +388,7 @@ imio/smartweb/core/tests/test_faceted.py,sha256=4wCfxDsU_zQ2G9xAy0g2jcuYl4HBALHs
388
388
  imio/smartweb/core/tests/test_folder.py,sha256=JjV5Hvo6IMEFHo2kowbqhLxcXy11zHRTKL9jYJrRHV0,13527
389
389
  imio/smartweb/core/tests/test_footer.py,sha256=5FYaKDRrY10_rXvetVmbo6-uOZSRQuOkaO_fvuv94N4,10970
390
390
  imio/smartweb/core/tests/test_herobanner.py,sha256=oCbnS288FcJqbhWDmqdWcAXi4S7qdnf2MvBtxrLVd_I,5940
391
- imio/smartweb/core/tests/test_htmx_in_sections.py,sha256=Y1aiIAWBqT9ej_Ms6iwLHmfzfLYG0uUEr_QEyZUeAvs,5000
391
+ imio/smartweb/core/tests/test_htmx_in_sections.py,sha256=GJnJuZuuYaf7X9JLQp_Ew5EovSpO1N_QDQjsoLDsZrI,5055
392
392
  imio/smartweb/core/tests/test_icons.py,sha256=sP1lIVnImCREersIZp1_QfD1LLyLFyr_mSMpt-ybgfY,2788
393
393
  imio/smartweb/core/tests/test_indexes.py,sha256=DtRgpdkZ2PKu8y8OrARY1Gk3JU-siWlkDf98A_ZvzFI,10784
394
394
  imio/smartweb/core/tests/test_instance_behaviors.py,sha256=YMLtXkhxrLlD0nh0wx1-kX2hawQiOGvJqYXh_s53GPI,4274
@@ -723,10 +723,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=x9xi6Ym29ENfIdeysHeh0g
723
723
  imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
724
724
  imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=SmhBsvncTNx95019NNz5uAm1foKqeKjcC5i9ZMo1G3E,6629
725
725
  imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
726
- imio.smartweb.core-1.2.43.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
727
- imio.smartweb.core-1.2.43.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
728
- imio.smartweb.core-1.2.43.dist-info/METADATA,sha256=uOtHut0R3tm4ms0bZYtvguQwu4Z218uCf-pmlfdP6wU,51857
729
- imio.smartweb.core-1.2.43.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
730
- imio.smartweb.core-1.2.43.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
731
- imio.smartweb.core-1.2.43.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
732
- imio.smartweb.core-1.2.43.dist-info/RECORD,,
726
+ imio.smartweb.core-1.2.44.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
727
+ imio.smartweb.core-1.2.44.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
728
+ imio.smartweb.core-1.2.44.dist-info/METADATA,sha256=N2ZVlX9v_iLWtlIIIL32SQf2bFdMXIxLeuJOfwDLxDU,51940
729
+ imio.smartweb.core-1.2.44.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
730
+ imio.smartweb.core-1.2.44.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
731
+ imio.smartweb.core-1.2.44.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
732
+ imio.smartweb.core-1.2.44.dist-info/RECORD,,