imio.smartweb.core 1.2.22__py3-none-any.whl → 1.2.23__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/cropping.py +1 -1
- imio/smartweb/core/tests/test_cropping.py +4 -4
- imio/smartweb/core/tests/test_vocabularies.py +1 -1
- imio/smartweb/core/utils.py +1 -1
- imio/smartweb/core/vocabularies.py +1 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/METADATA +8 -1
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/RECORD +13 -13
- /imio.smartweb.core-1.2.22-py3.10-nspkg.pth → /imio.smartweb.core-1.2.23-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/top_level.txt +0 -0
@@ -19,7 +19,7 @@ class SmartwebCroppingProvider(BaseCroppingProvider):
|
|
19
19
|
return []
|
20
20
|
elif fieldname == "image":
|
21
21
|
# scales used for lead_image fields
|
22
|
-
return ["portrait_affiche", "paysage_affiche"]
|
22
|
+
return ["portrait_affiche", "paysage_affiche", "carre_affiche"]
|
23
23
|
else:
|
24
24
|
return super(SmartwebCroppingProvider, self).get_scales(fieldname, request)
|
25
25
|
|
@@ -56,7 +56,7 @@ class TestCropping(ImioSmartwebTestCase):
|
|
56
56
|
view.enable()
|
57
57
|
adapter = ICropping(self.folder, alternate=None)
|
58
58
|
self.assertEqual(
|
59
|
-
["portrait_affiche", "paysage_affiche"],
|
59
|
+
["portrait_affiche", "paysage_affiche", "carre_affiche"],
|
60
60
|
adapter.get_scales("image", self.request),
|
61
61
|
)
|
62
62
|
self.assertEqual([], adapter.get_scales("banner", self.request))
|
@@ -68,7 +68,7 @@ class TestCropping(ImioSmartwebTestCase):
|
|
68
68
|
view.enable()
|
69
69
|
adapter = ICropping(self.folder, alternate=None)
|
70
70
|
self.assertEqual(
|
71
|
-
["portrait_affiche", "paysage_affiche"],
|
71
|
+
["portrait_affiche", "paysage_affiche", "carre_affiche"],
|
72
72
|
adapter.get_scales("image", self.request),
|
73
73
|
)
|
74
74
|
self.assertEqual([], adapter.get_scales("banner", self.request))
|
@@ -84,7 +84,7 @@ class TestCropping(ImioSmartwebTestCase):
|
|
84
84
|
# page cropping
|
85
85
|
adapter = ICropping(self.page, alternate=None)
|
86
86
|
self.assertEqual(
|
87
|
-
["portrait_affiche", "paysage_affiche"],
|
87
|
+
["portrait_affiche", "paysage_affiche", "carre_affiche"],
|
88
88
|
adapter.get_scales("image", self.request),
|
89
89
|
)
|
90
90
|
|
@@ -116,7 +116,7 @@ class TestCropping(ImioSmartwebTestCase):
|
|
116
116
|
(self.folder, self.request), name="croppingeditor"
|
117
117
|
)
|
118
118
|
self.assertEqual(len(list(cropping_view._scales("banner"))), 0)
|
119
|
-
self.assertEqual(len(list(cropping_view._scales("image"))),
|
119
|
+
self.assertEqual(len(list(cropping_view._scales("image"))), 3)
|
120
120
|
self.assertNotIn("Banner", cropping_view())
|
121
121
|
self.assertIn("Lead Image", cropping_view())
|
122
122
|
|
@@ -85,7 +85,7 @@ class TestVocabularies(ImioSmartwebTestCase):
|
|
85
85
|
self.assertVocabularyLen("imio.smartweb.vocabulary.BootstrapCSS", 6)
|
86
86
|
|
87
87
|
def test_orientation(self):
|
88
|
-
self.assertVocabularyLen("imio.smartweb.vocabulary.Orientation",
|
88
|
+
self.assertVocabularyLen("imio.smartweb.vocabulary.Orientation", 3)
|
89
89
|
|
90
90
|
def test_subsite_display_mode(self):
|
91
91
|
self.assertVocabularyLen("imio.smartweb.vocabulary.SubsiteDisplayMode", 3)
|
imio/smartweb/core/utils.py
CHANGED
@@ -132,7 +132,7 @@ def get_default_content_id(obj):
|
|
132
132
|
|
133
133
|
def get_scale_url(context, request, fieldname, scale_name, orientation=""):
|
134
134
|
if orientation:
|
135
|
-
m = re.match(r"(portrait|paysage)_(\w+)", scale_name)
|
135
|
+
m = re.match(r"(portrait|paysage|carre)_(\w+)", scale_name)
|
136
136
|
if m:
|
137
137
|
# remove existing orientation (if any) from scale name
|
138
138
|
scale_name = m.group(2)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.23
|
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.23 (2024-01-09)
|
193
|
+
-------------------
|
194
|
+
|
195
|
+
- WEB-4041 : Handle new "carre" scale
|
196
|
+
[boulch]
|
197
|
+
|
198
|
+
|
192
199
|
1.2.22 (2024-01-05)
|
193
200
|
-------------------
|
194
201
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.23-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
|
@@ -12,8 +12,8 @@ imio/smartweb/core/subscribers.py,sha256=9I6fAJj1FhtkYQZ2Ug_3Bl-p_rn1Nf9_BBHo_iU
|
|
12
12
|
imio/smartweb/core/subscribers.zcml,sha256=48jHmwwnW37LFCN8HFlxdCe8CgNohYRY_pvbKYa2Gww,1016
|
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=
|
16
|
-
imio/smartweb/core/vocabularies.py,sha256=
|
15
|
+
imio/smartweb/core/utils.py,sha256=2hE3RmiEV8dO5ZrevlvTmf8BhnmMZIV4QkYuceWWkDY,6577
|
16
|
+
imio/smartweb/core/vocabularies.py,sha256=QktzrS120zvMJ446C2EV1e_EhZlaKCFZhqw7_szz10A,20541
|
17
17
|
imio/smartweb/core/vocabularies.zcml,sha256=lqiCmaaJwMcO18fWlrtdpI-1g3AZ-Krh9mXRTt1y8o4,5264
|
18
18
|
imio/smartweb/core/behaviors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
imio/smartweb/core/behaviors/configure.zcml,sha256=3M78L3V1Sdp5AjPscgxHEo79j9ZqiR55ix9QI43KJM0,1677
|
@@ -140,7 +140,7 @@ imio/smartweb/core/browser/subsite/settings.py,sha256=tXEnEYZG75eM7H766ZgNCCWMwO
|
|
140
140
|
imio/smartweb/core/browser/templates/link_input.pt,sha256=Q7Y4gW4q0DVG-U5f3ZJkrAZwJnV8NMPu_Fdht7zhb4A,2808
|
141
141
|
imio/smartweb/core/contents/__init__.py,sha256=0DXz6HbcuFMCGXea3MCfrkT3CBFuVj2nHwd3_UUgPtw,3389
|
142
142
|
imio/smartweb/core/contents/configure.zcml,sha256=VmTWQbCWiiKQUsqzOpP0bRk7ah3B3JZZt7pztgU2Z2g,807
|
143
|
-
imio/smartweb/core/contents/cropping.py,sha256=
|
143
|
+
imio/smartweb/core/contents/cropping.py,sha256=3RYRf3kZkRxcwuNsTUnsb1OKbLD9seBu3So_8k7XBXQ,1482
|
144
144
|
imio/smartweb/core/contents/blocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
145
145
|
imio/smartweb/core/contents/blocks/configure.zcml,sha256=qmn7Hq9TekwvEYvS3PzUtINoA-slaoBrhAVxqvkbYC8,732
|
146
146
|
imio/smartweb/core/contents/blocks/subscriber.py,sha256=YL8mLJBwLvRvhPprbVlSXrNnWK2elZQtbYroWAcCjVg,330
|
@@ -367,7 +367,7 @@ imio/smartweb/core/tests/test_behaviors.py,sha256=-CGdTPsWC6p7_SEwmQF_6IugNb5g_-
|
|
367
367
|
imio/smartweb/core/tests/test_categories.py,sha256=0qlzehS0VS-bNuAIAKued4m1o1G5VD6z21XPDqwdOk0,2012
|
368
368
|
imio/smartweb/core/tests/test_chatbot.py,sha256=F_53Vk9CwN9o4brZPifY4EQ-umcjdoGQwIBz25hcbxY,1161
|
369
369
|
imio/smartweb/core/tests/test_cirkwiview.py,sha256=i0ObNWPW4kdF81Tq3fizdBo_7aJT9WGL2SsARWhtn7Q,4921
|
370
|
-
imio/smartweb/core/tests/test_cropping.py,sha256
|
370
|
+
imio/smartweb/core/tests/test_cropping.py,sha256=2dyNZNqsL8-LAObL0_hvpxwic18C1-gip8piE_iamDU,6551
|
371
371
|
imio/smartweb/core/tests/test_default_pages.py,sha256=logfeFBEGoadZ37OtcKc2YAz3ok5DgvhQQQ3BsYQlFc,12109
|
372
372
|
imio/smartweb/core/tests/test_faceted.py,sha256=4wCfxDsU_zQ2G9xAy0g2jcuYl4HBALHszM-qJc1v-3M,5994
|
373
373
|
imio/smartweb/core/tests/test_folder.py,sha256=JjV5Hvo6IMEFHo2kowbqhLxcXy11zHRTKL9jYJrRHV0,13527
|
@@ -399,7 +399,7 @@ imio/smartweb/core/tests/test_subsite.py,sha256=wiD8Ke4_-ArstSYNLCs8ArqOuDx2xxUR
|
|
399
399
|
imio/smartweb/core/tests/test_text.py,sha256=DtZNNGJ-MDYbJ-YQj2C0q2Hr7t4-sUbV6SWkE7tihBY,4652
|
400
400
|
imio/smartweb/core/tests/test_toolbar.py,sha256=dxwOGNOg2wPkAnPU3hqGCI6VL2D2nPOIOtbMorvjfps,3823
|
401
401
|
imio/smartweb/core/tests/test_utils.py,sha256=CkRkK3SbT4oQx_-Nq2Z0AhmhzR4kk2BkIZqSbIiPU04,4125
|
402
|
-
imio/smartweb/core/tests/test_vocabularies.py,sha256=
|
402
|
+
imio/smartweb/core/tests/test_vocabularies.py,sha256=nSYjgQMtY4mByiOggLxy--OJu0yaQqJTE9G-8k3AMa8,14234
|
403
403
|
imio/smartweb/core/tests/utils.py,sha256=hsDrWOxL0oNNyx92Hke9Kj9ByKzc2kZ19q9QPVsNud4,2688
|
404
404
|
imio/smartweb/core/tests/resources/cirkwi_bad_widget_mock.html,sha256=13YeZ0mo8PoeHIHa64SLKuhNfGqBMT2uprmYDyQxE78,150
|
405
405
|
imio/smartweb/core/tests/resources/cirkwi_good_widget_mock.html,sha256=vBgQwBKNGcGRrOHfXYZO_gmAGL1oKPDIUOnDfXEHCR4,333252
|
@@ -677,10 +677,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=ulMbtvMcmV0Af4lhYtkkSh
|
|
677
677
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=Ht5NXE7K1HohmDv4BOaE4Z0mhnqtKqYbBuEiP371Uho,73
|
678
678
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=bsTZTvRlBaCImAchnuhZLtLQYC06bM539cPLoAgBMP0,2694
|
679
679
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
680
|
-
imio.smartweb.core-1.2.
|
681
|
-
imio.smartweb.core-1.2.
|
682
|
-
imio.smartweb.core-1.2.
|
683
|
-
imio.smartweb.core-1.2.
|
684
|
-
imio.smartweb.core-1.2.
|
685
|
-
imio.smartweb.core-1.2.
|
686
|
-
imio.smartweb.core-1.2.
|
680
|
+
imio.smartweb.core-1.2.23.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
681
|
+
imio.smartweb.core-1.2.23.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
682
|
+
imio.smartweb.core-1.2.23.dist-info/METADATA,sha256=h3cjiklLwRYdc76DpbvsFZ1gwGWx7Hq_6A3Nj_kVLwU,47140
|
683
|
+
imio.smartweb.core-1.2.23.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
684
|
+
imio.smartweb.core-1.2.23.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
685
|
+
imio.smartweb.core-1.2.23.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
686
|
+
imio.smartweb.core-1.2.23.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.22.dist-info → imio.smartweb.core-1.2.23.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|