imio.smartweb.common 1.2.13__py3-none-any.whl → 1.2.14__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/collective_taxonomy_controlpanel.py +5 -1
- imio/smartweb/common/browser/vocabulary.py +3 -2
- imio/smartweb/common/profiles/default/metadata.xml +1 -1
- imio/smartweb/common/upgrades/configure.zcml +18 -0
- imio/smartweb/common/upgrades/profiles/1029_to_1030/registry.xml +13 -0
- imio.smartweb.common-1.2.14-py3.11-nspkg.pth +2 -0
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/METADATA +18 -4
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/RECORD +13 -12
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/WHEEL +1 -1
- imio.smartweb.common-1.2.13-py3.10-nspkg.pth +0 -3
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.common-1.2.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/top_level.txt +0 -0
|
@@ -54,7 +54,11 @@ class ImportJson(baseImportJson):
|
|
|
54
54
|
"status": "error",
|
|
55
55
|
"message": translate(
|
|
56
56
|
_(
|
|
57
|
-
|
|
57
|
+
'Term "${term_title}" can\'t be removed because it is used (at least) here : ${here}',
|
|
58
|
+
mapping={
|
|
59
|
+
"term_title": term_title,
|
|
60
|
+
"here": here,
|
|
61
|
+
},
|
|
58
62
|
),
|
|
59
63
|
context=request,
|
|
60
64
|
),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
-
from imio.smartweb.locales import SmartwebMessageFactory as _
|
|
4
3
|
from plone import api
|
|
5
4
|
from plone.app.content.browser.vocabulary import VocabularyView
|
|
6
5
|
from plone.app.content.utils import json_dumps
|
|
@@ -22,5 +21,7 @@ class TranslatedVocabularyView(VocabularyView):
|
|
|
22
21
|
lang = api.portal.get_current_language()[:2]
|
|
23
22
|
for item in json["results"]:
|
|
24
23
|
if "text" in item:
|
|
25
|
-
item["text"] = translate(
|
|
24
|
+
item["text"] = translate(
|
|
25
|
+
item["text"], domain="imio.smartweb", target_language=lang
|
|
26
|
+
)
|
|
26
27
|
return json_dumps(json)
|
|
@@ -132,6 +132,14 @@
|
|
|
132
132
|
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
133
133
|
/>
|
|
134
134
|
|
|
135
|
+
<genericsetup:registerProfile
|
|
136
|
+
name="upgrade_1029_to_1030"
|
|
137
|
+
title="Upgrade common from 1029 to 1030"
|
|
138
|
+
directory="profiles/1029_to_1030"
|
|
139
|
+
description="Remove obsolete patterns bundle / fix previous 1027_to_1028 upgrade"
|
|
140
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
141
|
+
/>
|
|
142
|
+
|
|
135
143
|
<genericsetup:upgradeStep
|
|
136
144
|
title="Configure first official release"
|
|
137
145
|
description="Run needed registry step"
|
|
@@ -420,4 +428,14 @@
|
|
|
420
428
|
/>
|
|
421
429
|
</genericsetup:upgradeSteps>
|
|
422
430
|
|
|
431
|
+
<genericsetup:upgradeSteps
|
|
432
|
+
source="1029"
|
|
433
|
+
destination="1030"
|
|
434
|
+
profile="imio.smartweb.common:default">
|
|
435
|
+
<genericsetup:upgradeDepends
|
|
436
|
+
title="Remove obsolete patterns bundle / fix previous 1027_to_1028 upgrade"
|
|
437
|
+
import_profile="imio.smartweb.common.upgrades:upgrade_1029_to_1030"
|
|
438
|
+
/>
|
|
439
|
+
</genericsetup:upgradeSteps>
|
|
440
|
+
|
|
423
441
|
</configure>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<registry>
|
|
3
|
+
|
|
4
|
+
<records prefix="plone.bundles/patterns"
|
|
5
|
+
interface="Products.CMFPlone.interfaces.IBundleRegistry"
|
|
6
|
+
remove="true" />
|
|
7
|
+
|
|
8
|
+
<records prefix="plone.bundles/faceted.jquery"
|
|
9
|
+
interface="Products.CMFPlone.interfaces.IBundleRegistry">
|
|
10
|
+
<value key="jscompilation">++plone++facetednavigation/faceted-jquery.min.js</value>
|
|
11
|
+
</records>
|
|
12
|
+
|
|
13
|
+
</registry>
|
|
@@ -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
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.14
|
|
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
|
|
@@ -28,8 +28,8 @@ Requires-Dist: z3c.jbot
|
|
|
28
28
|
Requires-Dist: z3c.unconfigure
|
|
29
29
|
Requires-Dist: beautifulsoup4
|
|
30
30
|
Requires-Dist: geopy
|
|
31
|
-
Requires-Dist: Products.GenericSetup
|
|
32
|
-
Requires-Dist: plone.api
|
|
31
|
+
Requires-Dist: Products.GenericSetup >=1.8.2
|
|
32
|
+
Requires-Dist: plone.api >=1.8.4
|
|
33
33
|
Requires-Dist: plone.restapi
|
|
34
34
|
Requires-Dist: plone.app.dexterity
|
|
35
35
|
Requires-Dist: plone.app.imagecropping
|
|
@@ -45,7 +45,7 @@ Requires-Dist: imio.smartweb.locales
|
|
|
45
45
|
Requires-Dist: more-itertools
|
|
46
46
|
Provides-Extra: test
|
|
47
47
|
Requires-Dist: plone.app.testing ; extra == 'test'
|
|
48
|
-
Requires-Dist: plone.testing
|
|
48
|
+
Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
|
|
49
49
|
Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
|
|
50
50
|
Requires-Dist: plone.restapi[test] ; extra == 'test'
|
|
51
51
|
Requires-Dist: freezegun ; extra == 'test'
|
|
@@ -161,6 +161,20 @@ Changelog
|
|
|
161
161
|
=========
|
|
162
162
|
|
|
163
163
|
|
|
164
|
+
1.2.14 (2024-05-24)
|
|
165
|
+
-------------------
|
|
166
|
+
|
|
167
|
+
- Fix bundles: Remove obsolete patterns bundle and fix a previous upgrade for
|
|
168
|
+
eea.facetednavigation
|
|
169
|
+
[laulaz]
|
|
170
|
+
|
|
171
|
+
- Fix translate call (was causing incorrect string in .po file)
|
|
172
|
+
[laulaz]
|
|
173
|
+
|
|
174
|
+
- Fix translation message string
|
|
175
|
+
[laulaz]
|
|
176
|
+
|
|
177
|
+
|
|
164
178
|
1.2.13 (2024-05-24)
|
|
165
179
|
-------------------
|
|
166
180
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
imio.smartweb.common-1.2.
|
|
1
|
+
imio.smartweb.common-1.2.14-py3.11-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
|
|
@@ -26,14 +26,14 @@ imio/smartweb/common/behaviors/configure.zcml,sha256=RfGH8DIybHpxxe2HUsjH2QKSiWY
|
|
|
26
26
|
imio/smartweb/common/behaviors/iam.py,sha256=17ON7M6FHXOM_8NOHT_QnJJuAIs4diWCrguHP6Lh5oA,825
|
|
27
27
|
imio/smartweb/common/behaviors/topics.py,sha256=mguoFXN5XjcGXvA5HeV_l7-gJ5eR0hfjN1nbXYogcWw,832
|
|
28
28
|
imio/smartweb/common/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
-
imio/smartweb/common/browser/collective_taxonomy_controlpanel.py,sha256=
|
|
29
|
+
imio/smartweb/common/browser/collective_taxonomy_controlpanel.py,sha256=QngrsXOIjOt0xHEt2r0W66CPg5msY4H7mDkRaAEGQdg,3044
|
|
30
30
|
imio/smartweb/common/browser/configure.zcml,sha256=1cDR2cy7O6WX33cFmbJU971wxg22LkLJYiMKCmBTWrA,3177
|
|
31
31
|
imio/smartweb/common/browser/cropping.py,sha256=uB0UiCUVMD1YT4a1rBmRzmhtnbatrPAXZztkSypiE6s,2676
|
|
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
|
|
35
35
|
imio/smartweb/common/browser/scaling.py,sha256=aBmuMyzy2s_5PCfkyvxJiARHowpck1BOva8RKEJSVso,297
|
|
36
|
-
imio/smartweb/common/browser/vocabulary.py,sha256=
|
|
36
|
+
imio/smartweb/common/browser/vocabulary.py,sha256=XXFuV1nYvu7s8j7tufrg33AmpaNgTIHl13VzEK0ro34,905
|
|
37
37
|
imio/smartweb/common/browser/overrides/plone.app.z3cform.templates.widget.pt,sha256=5ODz0fk4QW4docMHdVzHDst2OkFQZBy5RAifU4pR3EM,1818
|
|
38
38
|
imio/smartweb/common/browser/privacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
imio/smartweb/common/browser/privacy/configure.zcml,sha256=ScQ2BDN_1odUy-eHfitaRg6XFQE6u4C_vq4iUBTb7Gg,1062
|
|
@@ -59,7 +59,7 @@ imio/smartweb/common/faceted/widget.py,sha256=EMvFyEcS9t6lJAgz4zIkUnGAPd1fQcrv4A
|
|
|
59
59
|
imio/smartweb/common/profiles/default/actions.xml,sha256=q5ajChGAPlPtpN_H80voDgg4C8Z-yDcIghUJIgFYtRg,1193
|
|
60
60
|
imio/smartweb/common/profiles/default/browserlayer.xml,sha256=Up2dVOgFtzE43eLMNJY1xXvdUbQRSEpNxnySqSncFqQ,185
|
|
61
61
|
imio/smartweb/common/profiles/default/catalog.xml,sha256=hB2Cu64TPp29EKICqbfixwa3AFmrDJVC784KeKTMX90,576
|
|
62
|
-
imio/smartweb/common/profiles/default/metadata.xml,sha256=
|
|
62
|
+
imio/smartweb/common/profiles/default/metadata.xml,sha256=OpX9lr-otgJAUm13eQq1hl7qvyzYvqgohSoxaTHPgeE,432
|
|
63
63
|
imio/smartweb/common/profiles/default/registry.xml,sha256=2QtF0fDOdiYbkGLrxW710g-8FnfrNsby9FJGsfdygZk,46853
|
|
64
64
|
imio/smartweb/common/profiles/default/rolemap.xml,sha256=XCdOazRleiwTAAZt3lzTsOw3ZtIwoPDqA8s4zXACvkc,1595
|
|
65
65
|
imio/smartweb/common/profiles/testing/catalog.xml,sha256=CzEXLuHkT5NH-lRzTSDIR_3y_U7t2D7oBDm1oAJIoP4,214
|
|
@@ -102,7 +102,7 @@ imio/smartweb/common/tests/resources/image_1400x800.png,sha256=Iy3bWGH4NBlgYC5Bo
|
|
|
102
102
|
imio/smartweb/common/tests/resources/image_1800x700.png,sha256=aQcMisSFQO78c6QX4mO7qIfDb9SDRmfzTuPjxMJ_0HM,32643
|
|
103
103
|
imio/smartweb/common/tests/robot/test_example.robot,sha256=3ClbWps1Pfr6-RHT4FmmzGWGmtJrNnDW53bJGP69Nz4,2011
|
|
104
104
|
imio/smartweb/common/upgrades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
105
|
-
imio/smartweb/common/upgrades/configure.zcml,sha256=
|
|
105
|
+
imio/smartweb/common/upgrades/configure.zcml,sha256=WjVIBgNrlWJgupK1GWlh7flkhcpoFnBWoEhyq0TAXnE,14758
|
|
106
106
|
imio/smartweb/common/upgrades/upgrades.py,sha256=NObmvdWPUrfgaPJhTB_tIZsmLawxg5jbui-TRLhS2NE,5474
|
|
107
107
|
imio/smartweb/common/upgrades/profiles/1007_to_1008/rolemap.xml,sha256=dKUuBq-2pO4dGtHshBisISSTBP8aWfbwTGHj_pJvY5A,1346
|
|
108
108
|
imio/smartweb/common/upgrades/profiles/1008_to_1009/actions.xml,sha256=D41gp1PDVINobhCM8L11IMXABYatjmoUuW-EQkPT804,721
|
|
@@ -122,6 +122,7 @@ imio/smartweb/common/upgrades/profiles/1023_to_1024/registry/scales.xml,sha256=e
|
|
|
122
122
|
imio/smartweb/common/upgrades/profiles/1025_to_1026/registry/scales.xml,sha256=5f2y6ixe5dbZDLyj2RhQgzyiQ3qiI_RL336-Cm6pTnc,1077
|
|
123
123
|
imio/smartweb/common/upgrades/profiles/1027_to_1028/restored-faceted-jquery.xml,sha256=m6f4maF5HmswCKu5TJmTejshCrrBBM9feii6a5jTZfY,264
|
|
124
124
|
imio/smartweb/common/upgrades/profiles/1028_to_1029/registry.xml,sha256=3XXZyTOD_AWftgJ53ynpFuX5kwhbZEviU6zH1OgJkXQ,595
|
|
125
|
+
imio/smartweb/common/upgrades/profiles/1029_to_1030/registry.xml,sha256=cApJaG7duyGX3D3Bby3V3D8YcIAZuWB-A-WSH3XKU7E,406
|
|
125
126
|
imio/smartweb/common/viewlets/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
126
127
|
imio/smartweb/common/viewlets/analytics.pt,sha256=J6e8fWmusLWMKXg3cJbNYV0LPS9ONz2yJ921vMvrrzE,33
|
|
127
128
|
imio/smartweb/common/viewlets/colophon.pt,sha256=qaEUV2N5aZpAEcztLzK_R2eINBod1AByWxi11B1HYa0,1278
|
|
@@ -131,10 +132,10 @@ imio/smartweb/common/viewlets/privacy.pt,sha256=bAD-I6s3LUgkh30vyTbP3pNUZQYua1Kx
|
|
|
131
132
|
imio/smartweb/common/viewlets/privacy.py,sha256=H752etTTIFCM0wTwjESQFl0PStJfCoSRfcePSUQOp8E,449
|
|
132
133
|
imio/smartweb/common/viewlets/skip_to_content.pt,sha256=FFfTxvRl8V52FzFE6In6B34ApgShNntvMp6F1qwfL0g,376
|
|
133
134
|
imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
|
|
134
|
-
imio.smartweb.common-1.2.
|
|
135
|
-
imio.smartweb.common-1.2.
|
|
136
|
-
imio.smartweb.common-1.2.
|
|
137
|
-
imio.smartweb.common-1.2.
|
|
138
|
-
imio.smartweb.common-1.2.
|
|
139
|
-
imio.smartweb.common-1.2.
|
|
140
|
-
imio.smartweb.common-1.2.
|
|
135
|
+
imio.smartweb.common-1.2.14.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
136
|
+
imio.smartweb.common-1.2.14.dist-info/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
|
|
137
|
+
imio.smartweb.common-1.2.14.dist-info/METADATA,sha256=E91D2fX8SB9rRAOCHz-RREDSrDoOb3q5hR5R-oHH84o,14764
|
|
138
|
+
imio.smartweb.common-1.2.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
139
|
+
imio.smartweb.common-1.2.14.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
|
140
|
+
imio.smartweb.common-1.2.14.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
|
141
|
+
imio.smartweb.common-1.2.14.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.13.dist-info → imio.smartweb.common-1.2.14.dist-info}/top_level.txt
RENAMED
|
File without changes
|