imio.smartweb.common 1.2.20__py3-none-any.whl → 1.2.21__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/common/browser/cropping.py +5 -6
- imio/smartweb/common/tests/test_cropping.py +3 -0
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/METADATA +21 -2
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/RECORD +10 -10
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/WHEEL +1 -1
- /imio.smartweb.common-1.2.20-py3.12-nspkg.pth → /imio.smartweb.common-1.2.21-py3.12-nspkg.pth +0 -0
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/top_level.txt +0 -0
|
@@ -51,12 +51,11 @@ class SmartwebCroppingImageScalingFactory(CroppingImageScalingFactory):
|
|
|
51
51
|
):
|
|
52
52
|
storage = Storage(self.context)
|
|
53
53
|
self.box = storage.read(fieldname, scale)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
if scale is not None:
|
|
55
|
+
if "portrait" in scale or "paysage" in scale or "carre" in scale:
|
|
56
|
+
orientation = scale.split("_")[0]
|
|
57
|
+
# take cropping box from "affiche" scale
|
|
58
|
+
self.box = storage.read(fieldname, f"{orientation}_affiche")
|
|
60
59
|
if self.box:
|
|
61
60
|
mode = "contain"
|
|
62
61
|
else:
|
|
@@ -71,6 +71,9 @@ class TestCropping(unittest.TestCase):
|
|
|
71
71
|
# uncropped scale
|
|
72
72
|
self.assertIsNone(factory.box)
|
|
73
73
|
|
|
74
|
+
factory("image", "scale", 100, 100)
|
|
75
|
+
self.assertIsNone(factory.box)
|
|
76
|
+
|
|
74
77
|
api.content.transition(self.folder, "publish")
|
|
75
78
|
transaction.commit()
|
|
76
79
|
browser = Browser(self.layer["app"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.21
|
|
4
4
|
Summary: Common utilities, vocabularies, taxonomies for imio.smartweb & co products
|
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.common
|
|
6
6
|
Author: iMio
|
|
@@ -51,6 +51,18 @@ Requires-Dist: plone.app.robotframework[debug]; extra == "test"
|
|
|
51
51
|
Requires-Dist: plone.restapi[test]; extra == "test"
|
|
52
52
|
Requires-Dist: freezegun; extra == "test"
|
|
53
53
|
Requires-Dist: mock; extra == "test"
|
|
54
|
+
Dynamic: author
|
|
55
|
+
Dynamic: author-email
|
|
56
|
+
Dynamic: classifier
|
|
57
|
+
Dynamic: description
|
|
58
|
+
Dynamic: home-page
|
|
59
|
+
Dynamic: keywords
|
|
60
|
+
Dynamic: license
|
|
61
|
+
Dynamic: project-url
|
|
62
|
+
Dynamic: provides-extra
|
|
63
|
+
Dynamic: requires-dist
|
|
64
|
+
Dynamic: requires-python
|
|
65
|
+
Dynamic: summary
|
|
54
66
|
|
|
55
67
|
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
|
|
56
68
|
If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
|
|
@@ -162,6 +174,13 @@ Changelog
|
|
|
162
174
|
=========
|
|
163
175
|
|
|
164
176
|
|
|
177
|
+
1.2.21 (2025-01-31)
|
|
178
|
+
-------------------
|
|
179
|
+
|
|
180
|
+
- **Fix:** Updated to align scale behavior with the fix in plone.scale ([commit a352815](https://github.com/plone/plone.scale/commit/a352815#diff-24f46fc714c6d36041bcea7e64a7d5aeceacd929eb802655276a1d8f4b4576f4R209)).
|
|
181
|
+
[boulch]
|
|
182
|
+
|
|
183
|
+
|
|
165
184
|
1.2.20 (2025-01-29)
|
|
166
185
|
-------------------
|
|
167
186
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
imio.smartweb.common-1.2.
|
|
1
|
+
imio.smartweb.common-1.2.21-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
|
|
2
2
|
imio/smartweb/common/__init__.py,sha256=Na9XBfEQUMrm2c5jbqQgwWeg40ih0aXVG1vT8NeAjMQ,2709
|
|
3
3
|
imio/smartweb/common/adapters.py,sha256=rLlObjqZm3hs2hgUT-LmJytwhT-E1rTvbpIi0mmKQqY,610
|
|
4
4
|
imio/smartweb/common/adapters.zcml,sha256=ndYNj0J_BFfVpX_7JhY2asSwLzXG-WmjLdfwL9hX_No,254
|
|
@@ -28,7 +28,7 @@ imio/smartweb/common/behaviors/topics.py,sha256=K9XkhTBxxp_nBBeQ-ovUpmOc6raXIiYq
|
|
|
28
28
|
imio/smartweb/common/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
imio/smartweb/common/browser/collective_taxonomy_controlpanel.py,sha256=QngrsXOIjOt0xHEt2r0W66CPg5msY4H7mDkRaAEGQdg,3044
|
|
30
30
|
imio/smartweb/common/browser/configure.zcml,sha256=1cDR2cy7O6WX33cFmbJU971wxg22LkLJYiMKCmBTWrA,3177
|
|
31
|
-
imio/smartweb/common/browser/cropping.py,sha256=
|
|
31
|
+
imio/smartweb/common/browser/cropping.py,sha256=7xkTvs_0qUo9tC2tAIj77ZQn2RClKOgAwE0L6WhGGxg,2720
|
|
32
32
|
imio/smartweb/common/browser/description.pt,sha256=ZXKpsMQDJGC0dxVUg5v1W6LsG1_OWuYuWevZuF-Zn2Y,151
|
|
33
33
|
imio/smartweb/common/browser/description.py,sha256=BRpHkVzwyeM-SUzkEbtHn2fm8pQREtcHIW7feoQlBPQ,517
|
|
34
34
|
imio/smartweb/common/browser/forms.py,sha256=UK72J9cEadVU4DqQ3OHqv2Jo_Qff9iFSoRv2gsWpZps,4168
|
|
@@ -80,7 +80,7 @@ imio/smartweb/common/sharing/localroles.py,sha256=CFy2WcQz5M4hk0Mj8_Lr1lazJ4vu6Z
|
|
|
80
80
|
imio/smartweb/common/sharing/permissions.py,sha256=VKuVXrbfzzLJSX8q996GsVVdw59uxbeQ8Oe1U3jdOS4,452
|
|
81
81
|
imio/smartweb/common/sharing/permissions.zcml,sha256=TL61HFqzovSVzLZfKEoOZgtLy3V5qdNEvjSk2nN-Xqw,224
|
|
82
82
|
imio/smartweb/common/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
|
-
imio/smartweb/common/tests/test_cropping.py,sha256=
|
|
83
|
+
imio/smartweb/common/tests/test_cropping.py,sha256=WGXTc21HQSE0tdr_W9WfrjisToMBRpm4Og3RvmE2YMM,4820
|
|
84
84
|
imio/smartweb/common/tests/test_description.py,sha256=1gIMuNg5YQI52hqw2TiGeZyJFNo8PrvuepmmMB6N59U,2493
|
|
85
85
|
imio/smartweb/common/tests/test_forms.py,sha256=dIhpFXRwojGarjU-s1nItjFVXUR86utU9Qg0xJX3Ll4,2413
|
|
86
86
|
imio/smartweb/common/tests/test_indexes.py,sha256=3dzPAEbqnRqthKX9YUXM_dSbuZzWV-1Idf6GSWzCcfo,4960
|
|
@@ -135,10 +135,10 @@ imio/smartweb/common/viewlets/skip_to_content.pt,sha256=FFfTxvRl8V52FzFE6In6B34A
|
|
|
135
135
|
imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
|
|
136
136
|
imio/smartweb/common/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
137
|
imio/smartweb/common/widgets/select.py,sha256=vfVdbecH7qDfJvWV6TfkpqocD6AA5G4yIq7XqSOuVNw,1142
|
|
138
|
-
imio.smartweb.common-1.2.
|
|
139
|
-
imio.smartweb.common-1.2.
|
|
140
|
-
imio.smartweb.common-1.2.
|
|
141
|
-
imio.smartweb.common-1.2.
|
|
142
|
-
imio.smartweb.common-1.2.
|
|
143
|
-
imio.smartweb.common-1.2.
|
|
144
|
-
imio.smartweb.common-1.2.
|
|
138
|
+
imio.smartweb.common-1.2.21.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
139
|
+
imio.smartweb.common-1.2.21.dist-info/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
|
|
140
|
+
imio.smartweb.common-1.2.21.dist-info/METADATA,sha256=GgMQpzBWB1VXyB8xIqKyN3JOGYDtIyZwTisgAv8sEmk,16095
|
|
141
|
+
imio.smartweb.common-1.2.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
142
|
+
imio.smartweb.common-1.2.21.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
|
143
|
+
imio.smartweb.common-1.2.21.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
|
144
|
+
imio.smartweb.common-1.2.21.dist-info/RECORD,,
|
/imio.smartweb.common-1.2.20-py3.12-nspkg.pth → /imio.smartweb.common-1.2.21-py3.12-nspkg.pth
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.20.dist-info → imio.smartweb.common-1.2.21.dist-info}/top_level.txt
RENAMED
|
File without changes
|