imio.smartweb.common 1.2.18__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.21-py3.12-nspkg.pth +2 -0
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/METADATA +47 -13
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/RECORD +10 -10
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/WHEEL +1 -1
- imio.smartweb.common-1.2.18-py3.10-nspkg.pth +0 -3
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.common-1.2.18.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"])
|
|
@@ -0,0 +1,2 @@
|
|
|
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)
|
|
@@ -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
|
|
@@ -17,12 +17,11 @@ 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.12
|
|
23
22
|
Classifier: Operating System :: OS Independent
|
|
24
23
|
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
|
25
|
-
Requires-Python: >=3.
|
|
24
|
+
Requires-Python: >=3.10
|
|
26
25
|
License-File: LICENSE.GPL
|
|
27
26
|
License-File: LICENSE.rst
|
|
28
27
|
Requires-Dist: setuptools
|
|
@@ -30,8 +29,8 @@ Requires-Dist: z3c.jbot
|
|
|
30
29
|
Requires-Dist: z3c.unconfigure
|
|
31
30
|
Requires-Dist: beautifulsoup4
|
|
32
31
|
Requires-Dist: geopy
|
|
33
|
-
Requires-Dist: Products.GenericSetup
|
|
34
|
-
Requires-Dist: plone.api
|
|
32
|
+
Requires-Dist: Products.GenericSetup>=1.8.2
|
|
33
|
+
Requires-Dist: plone.api>=1.8.4
|
|
35
34
|
Requires-Dist: plone.restapi
|
|
36
35
|
Requires-Dist: plone.app.dexterity
|
|
37
36
|
Requires-Dist: plone.app.imagecropping
|
|
@@ -46,12 +45,24 @@ Requires-Dist: iaweb.privacy
|
|
|
46
45
|
Requires-Dist: imio.smartweb.locales
|
|
47
46
|
Requires-Dist: more-itertools
|
|
48
47
|
Provides-Extra: test
|
|
49
|
-
Requires-Dist: plone.app.testing
|
|
50
|
-
Requires-Dist: plone.testing
|
|
51
|
-
Requires-Dist: plone.app.robotframework[debug]
|
|
52
|
-
Requires-Dist: plone.restapi[test]
|
|
53
|
-
Requires-Dist: freezegun
|
|
54
|
-
Requires-Dist: mock
|
|
48
|
+
Requires-Dist: plone.app.testing; extra == "test"
|
|
49
|
+
Requires-Dist: plone.testing>=5.0.0; extra == "test"
|
|
50
|
+
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
|
|
51
|
+
Requires-Dist: plone.restapi[test]; extra == "test"
|
|
52
|
+
Requires-Dist: freezegun; extra == "test"
|
|
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
|
|
55
66
|
|
|
56
67
|
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
|
|
57
68
|
If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
|
|
@@ -163,6 +174,29 @@ Changelog
|
|
|
163
174
|
=========
|
|
164
175
|
|
|
165
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
|
+
|
|
184
|
+
1.2.20 (2025-01-29)
|
|
185
|
+
-------------------
|
|
186
|
+
|
|
187
|
+
- Update Python classifiers to be compatible with Python 3.12
|
|
188
|
+
[remdub]
|
|
189
|
+
|
|
190
|
+
- Migrate to Plone 6.0.14
|
|
191
|
+
[boulch]
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
1.2.19 (2025-01-09)
|
|
195
|
+
-------------------
|
|
196
|
+
|
|
197
|
+
- Nothing changed yet.
|
|
198
|
+
|
|
199
|
+
|
|
166
200
|
1.2.18 (2024-07-01)
|
|
167
201
|
-------------------
|
|
168
202
|
|
|
@@ -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,,
|
|
@@ -1,3 +0,0 @@
|
|
|
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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.18.dist-info → imio.smartweb.common-1.2.21.dist-info}/top_level.txt
RENAMED
|
File without changes
|