imio.smartweb.common 1.2.31__py3-none-any.whl → 1.2.33__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/configure.zcml +15 -4
- imio/smartweb/common/interfaces.py +5 -0
- imio/smartweb/common/serializers/__init__.py +0 -0
- imio/smartweb/common/serializers/configure.zcml +12 -0
- imio/smartweb/common/serializers/summary.py +11 -0
- imio/smartweb/common/utility_overrides.zcml +19 -0
- imio/smartweb/common/widgets/select.py +4 -1
- imio/smartweb/common/widgets/templates/ajaxselect_display.pt +26 -0
- imio/smartweb/common/widgets.zcml +15 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/METADATA +16 -1
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/RECORD +17 -11
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/WHEEL +1 -1
- /imio.smartweb.common-1.2.31-py3.12-nspkg.pth → /imio.smartweb.common-1.2.33-py3.12-nspkg.pth +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/licenses/LICENSE.GPL +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/licenses/LICENSE.rst +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/namespace_packages.txt +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
<configure
|
|
2
|
-
xmlns="http://namespaces.zope.org/zope">
|
|
1
|
+
<configure xmlns="http://namespaces.zope.org/zope">
|
|
3
2
|
|
|
4
|
-
<include
|
|
3
|
+
<include
|
|
4
|
+
package="z3c.unconfigure"
|
|
5
|
+
file="meta.zcml"
|
|
6
|
+
/>
|
|
5
7
|
<include package="collective.taxonomy" />
|
|
6
8
|
<include package="eea.facetednavigation" />
|
|
7
|
-
<include
|
|
9
|
+
<include
|
|
10
|
+
package="eea.facetednavigation"
|
|
11
|
+
file="meta.zcml"
|
|
12
|
+
/>
|
|
8
13
|
<include package="plone.app.imagecropping" />
|
|
9
14
|
<include package="imio.gdpr" />
|
|
10
15
|
<include package="imio.smartweb.locales" />
|
|
@@ -21,10 +26,16 @@
|
|
|
21
26
|
<include package=".browser" />
|
|
22
27
|
<include package=".faceted" />
|
|
23
28
|
<include package=".rest" />
|
|
29
|
+
<includeOverrides file="utility_overrides.zcml" />
|
|
30
|
+
<include package=".serializers" />
|
|
24
31
|
<include package=".sharing" />
|
|
25
32
|
<include package=".upgrades" />
|
|
26
33
|
<include package=".viewlets" />
|
|
27
34
|
|
|
35
|
+
|
|
28
36
|
<includeOverrides file="caching_overrides.zcml" />
|
|
29
37
|
|
|
38
|
+
<!-- widgets -->
|
|
39
|
+
<include file="widgets.zcml" />
|
|
40
|
+
|
|
30
41
|
</configure>
|
|
@@ -4,6 +4,7 @@ from collective.privacy.interfaces import ICollectivePrivacyLayer
|
|
|
4
4
|
from collective.taxonomy.interfaces import IBrowserLayer
|
|
5
5
|
from imio.smartweb.locales import SmartwebMessageFactory as _
|
|
6
6
|
from plone import schema
|
|
7
|
+
from plone.app.z3cform.interfaces import IAjaxSelectWidget
|
|
7
8
|
from plone.app.z3cform.interfaces import IPloneFormLayer
|
|
8
9
|
from plone.supermodel import model
|
|
9
10
|
from plone.theme.interfaces import IDefaultPloneLayer
|
|
@@ -41,3 +42,7 @@ class IAddress(model.Schema):
|
|
|
41
42
|
source="imio.smartweb.vocabulary.Countries",
|
|
42
43
|
required=False,
|
|
43
44
|
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class ITranslatedAjaxSelectWidget(IAjaxSelectWidget):
|
|
48
|
+
"""Marker interface for the TranslatedAjaxSelectWidget."""
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
4
|
+
i18n_domain="imio.smartweb"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
<utility
|
|
8
|
+
factory=".summary.JSONSummarySerializerMetadata"
|
|
9
|
+
name="imio.smartweb.common.summary_serializer_metadata"
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
</configure>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from plone.restapi.interfaces import IJSONSummarySerializerMetadata
|
|
2
|
+
from zope.interface import implementer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@implementer(IJSONSummarySerializerMetadata)
|
|
6
|
+
class JSONSummarySerializerMetadata:
|
|
7
|
+
def default_metadata_fields(self):
|
|
8
|
+
return {
|
|
9
|
+
"image_field",
|
|
10
|
+
"image_scales",
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
4
|
+
i18n_domain="imio.smartweb"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
<include
|
|
8
|
+
package="z3c.unconfigure"
|
|
9
|
+
file="meta.zcml"
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
<unconfigure>
|
|
13
|
+
<utility
|
|
14
|
+
factory="plone.volto.summary.JSONSummarySerializerMetadata"
|
|
15
|
+
name="plone.volto.summary_serializer_metadata"
|
|
16
|
+
/>
|
|
17
|
+
</unconfigure>
|
|
18
|
+
|
|
19
|
+
</configure>
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
+
from imio.smartweb.common.interfaces import ITranslatedAjaxSelectWidget
|
|
3
4
|
from plone import api
|
|
4
|
-
from plone.app.z3cform.
|
|
5
|
+
from plone.app.z3cform.widgets.select import AjaxSelectWidget
|
|
5
6
|
from z3c.form.interfaces import IFieldWidget
|
|
6
7
|
from z3c.form.widget import FieldWidget
|
|
7
8
|
from zope.interface import implementer
|
|
9
|
+
from zope.interface import implementer_only
|
|
8
10
|
from zope.i18n import translate
|
|
9
11
|
|
|
10
12
|
|
|
13
|
+
@implementer_only(ITranslatedAjaxSelectWidget)
|
|
11
14
|
class TranslatedAjaxSelectWidget(AjaxSelectWidget):
|
|
12
15
|
"""Translated Ajax select widget for z3c.form."""
|
|
13
16
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
2
|
+
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
3
|
+
tal:omit-tag="">
|
|
4
|
+
<span id="" class=""
|
|
5
|
+
tal:attributes="id view/id;
|
|
6
|
+
class view/klass;
|
|
7
|
+
style view/style;
|
|
8
|
+
title view/title;
|
|
9
|
+
lang view/lang;
|
|
10
|
+
onclick view/onclick;
|
|
11
|
+
ondblclick view/ondblclick;
|
|
12
|
+
onmousedown view/onmousedown;
|
|
13
|
+
onmouseup view/onmouseup;
|
|
14
|
+
onmouseover view/onmouseover;
|
|
15
|
+
onmousemove view/onmousemove;
|
|
16
|
+
onmouseout view/onmouseout;
|
|
17
|
+
onkeypress view/onkeypress;
|
|
18
|
+
onkeydown view/onkeydown;
|
|
19
|
+
onkeyup view/onkeyup"><tal:block
|
|
20
|
+
condition="view/value"
|
|
21
|
+
/>
|
|
22
|
+
<tal:loop tal:repeat="item python:view.display_items()">
|
|
23
|
+
<span data-token="${python:item['token']}">${python:item['title']}</span><tal:if tal:condition="python: not repeat.item.end" tal:replace="python:view.separator" />
|
|
24
|
+
</tal:loop>
|
|
25
|
+
</span>
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:z3c="http://namespaces.zope.org/z3c"
|
|
4
|
+
>
|
|
5
|
+
|
|
6
|
+
<!-- ajaxselect -->
|
|
7
|
+
<z3c:widgetTemplate
|
|
8
|
+
field="*"
|
|
9
|
+
widget=".interfaces.ITranslatedAjaxSelectWidget"
|
|
10
|
+
template="widgets/templates/ajaxselect_display.pt"
|
|
11
|
+
layer=".interfaces.IImioSmartwebCommonLayer"
|
|
12
|
+
mode="display"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
</configure>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.33
|
|
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
|
|
@@ -178,6 +178,21 @@ Changelog
|
|
|
178
178
|
=========
|
|
179
179
|
|
|
180
180
|
|
|
181
|
+
1.2.33 (2025-05-22)
|
|
182
|
+
-------------------
|
|
183
|
+
|
|
184
|
+
- WEB-4259 : Override plone.volto summary_serializer_metadata to solve a problem with new
|
|
185
|
+
metadata fields being added to the summary serializer and breaking our search endpoints
|
|
186
|
+
[bsuttor, remdub]
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
1.2.32 (2025-05-19)
|
|
190
|
+
-------------------
|
|
191
|
+
|
|
192
|
+
- WEB-4250 : Quick fix : Since Plone 6.1, AjaxSelectWidget is displaying in edit mode even if mode is "display"
|
|
193
|
+
[boulch]
|
|
194
|
+
|
|
195
|
+
|
|
181
196
|
1.2.31 (2025-05-15)
|
|
182
197
|
-------------------
|
|
183
198
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
imio.smartweb.common-1.2.
|
|
1
|
+
imio.smartweb.common-1.2.33-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=BjnzwhRhSYXziKUzmNTRBOXqDv4k8C8kfmwqZE7r1yU,1413
|
|
4
4
|
imio/smartweb/common/adapters.zcml,sha256=VO3luZDtRL9FIIEghxPrqpx8paZF3m6MGEy-8kF1sOQ,437
|
|
5
5
|
imio/smartweb/common/caching.py,sha256=aN7gX9rT63fnmUuZnx82Mbu3ghjJUeOiLvLEp9OiFm4,895
|
|
6
6
|
imio/smartweb/common/caching_overrides.zcml,sha256=ysa5DgVGzO1Fp22d9Wg-vNyLlqfRR77WBV-7L6j0Hpo,526
|
|
7
7
|
imio/smartweb/common/config.py,sha256=imgOo0_BBIbXGFNvBnhPReLOSY4JqIOH_QCAl0j0XGI,435
|
|
8
|
-
imio/smartweb/common/configure.zcml,sha256=
|
|
8
|
+
imio/smartweb/common/configure.zcml,sha256=Ypqlo27RCC_w48QaQ0xucQRDjIBs9VpdtoJSjionK6Y,1128
|
|
9
9
|
imio/smartweb/common/contact_utils.py,sha256=Pr-Nhz9MRnfirZ7RbmF5JZw9fX4gWa0dWkvJlQBiDKY,11341
|
|
10
10
|
imio/smartweb/common/indexers.py,sha256=TvvKglWI0JM5_jwetlpvqcjwkid_2PhaCZGKZV4sD34,1148
|
|
11
11
|
imio/smartweb/common/indexers.zcml,sha256=End1fDod99sr0xw8PaakgeTAZYq-HLOGw3MNA8K_CTs,324
|
|
12
|
-
imio/smartweb/common/interfaces.py,sha256=
|
|
12
|
+
imio/smartweb/common/interfaces.py,sha256=8Yv3B9q4oL_ql2Eh3_T5qvHjshaTE-h1TTXvZI4KdLY,1667
|
|
13
13
|
imio/smartweb/common/permissions.zcml,sha256=9BGNZ62fAdn6nTJkITcmhwEJA48UT7q9vOLHZqiuRzQ,260
|
|
14
14
|
imio/smartweb/common/privacy.py,sha256=ePuR-c-w7AmXSWA6czpfFK-wYNdoCm5yzEUKNSFKDW8,3476
|
|
15
15
|
imio/smartweb/common/privacy.zcml,sha256=KHC4JJt-9MbPcHHukN7QLwpMFXj96gXb0-vzU2ZboGk,1772
|
|
@@ -19,9 +19,11 @@ imio/smartweb/common/subscribers.py,sha256=pbPQJ1YrfPlYCfxLAJ5sOy_5OToAfs2egX68z
|
|
|
19
19
|
imio/smartweb/common/subscribers.zcml,sha256=8v2lqNNVAHlrh2G3jtjVgr3Asrw8WJLS9jSX5U6juFg,971
|
|
20
20
|
imio/smartweb/common/testing.py,sha256=GKlYMHJUSxZFVX0o_R_c_Au1VYlkd-GjykQqfONHv7I,1985
|
|
21
21
|
imio/smartweb/common/testing.zcml,sha256=7N-ALtklyWeLSzZmlxN2Tp-aZe_3An--w_6BGl1991E,172
|
|
22
|
+
imio/smartweb/common/utility_overrides.zcml,sha256=Nn1q1FwQUyktB-EJM2qzPfsc-zUmHxX0Gj9OQTlYKQM,413
|
|
22
23
|
imio/smartweb/common/utils.py,sha256=sSq72k41ELmlW5jc7JkRgKLXKQbbd68-87JtEDHmTCQ,7738
|
|
23
24
|
imio/smartweb/common/vocabularies.py,sha256=QRIOWLOALzZDM92o1iUTWgDBBcrdd9BYz7miNjpYCDA,3835
|
|
24
25
|
imio/smartweb/common/vocabularies.zcml,sha256=iFJer5q3wabBp_EZivPPVUqI1_9w5P_Ft1RGJB5Yqxs,940
|
|
26
|
+
imio/smartweb/common/widgets.zcml,sha256=GQ0aJblx44OJpj0HGXiyQJnFeSaJlOTMd1RAZn_1Qgk,375
|
|
25
27
|
imio/smartweb/common/behaviors/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
26
28
|
imio/smartweb/common/behaviors/configure.zcml,sha256=RfGH8DIybHpxxe2HUsjH2QKSiWYpV7lCZhGN6KLFwCw,531
|
|
27
29
|
imio/smartweb/common/behaviors/iam.py,sha256=17ON7M6FHXOM_8NOHT_QnJJuAIs4diWCrguHP6Lh5oA,825
|
|
@@ -77,6 +79,9 @@ imio/smartweb/common/rest/configure.zcml,sha256=8hQGCvo1EMGFe9cNUpGOcH7spKhUkglF
|
|
|
77
79
|
imio/smartweb/common/rest/odwb.py,sha256=zRZxowUaE76xlW_blc92vRCzToUpnzw3O5mxFXaeScU,2249
|
|
78
80
|
imio/smartweb/common/rest/search_filters.py,sha256=upZAZ6h50qiSXo0q22lUgNlcmX5elFtrIQs_jFBl1-s,3832
|
|
79
81
|
imio/smartweb/common/rest/utils.py,sha256=9zc5ge_DmVuexxN09c3U6QAITAI1s2hc0m6eZuylSxM,1269
|
|
82
|
+
imio/smartweb/common/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
|
+
imio/smartweb/common/serializers/configure.zcml,sha256=C_OdYNgi06mt4Sau-fTvYGAR24ZrlBVTSn5slbTFzlg,294
|
|
84
|
+
imio/smartweb/common/serializers/summary.py,sha256=kxr1qIf_6axIMR4kfki7yHKaM5oVdtQFgYyGBCWHQrI,312
|
|
80
85
|
imio/smartweb/common/sharing/__init__.py,sha256=I_cdzTAnsdb8tEO2kg2lzRkeA7wIGPqHKzu7LBxDwtk,56
|
|
81
86
|
imio/smartweb/common/sharing/configure.zcml,sha256=3i3gqKFXDb19fLcdCbwCDXiUF1UmOpORATfpvDw-Q0Y,255
|
|
82
87
|
imio/smartweb/common/sharing/localroles.py,sha256=CFy2WcQz5M4hk0Mj8_Lr1lazJ4vu6ZEoOeHt4-sfYi0,509
|
|
@@ -139,11 +144,12 @@ imio/smartweb/common/viewlets/privacy.py,sha256=H752etTTIFCM0wTwjESQFl0PStJfCoSR
|
|
|
139
144
|
imio/smartweb/common/viewlets/skip_to_content.pt,sha256=-tb3HkoGG8H_gBZL4eiJrPcWC6hxBEjb-KqP0co7zeY,386
|
|
140
145
|
imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
|
|
141
146
|
imio/smartweb/common/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
|
-
imio/smartweb/common/widgets/select.py,sha256=
|
|
143
|
-
|
|
144
|
-
imio_smartweb_common-1.2.
|
|
145
|
-
imio_smartweb_common-1.2.
|
|
146
|
-
imio_smartweb_common-1.2.
|
|
147
|
-
imio_smartweb_common-1.2.
|
|
148
|
-
imio_smartweb_common-1.2.
|
|
149
|
-
imio_smartweb_common-1.2.
|
|
147
|
+
imio/smartweb/common/widgets/select.py,sha256=5sV0UIgwu4AvwpgVmJeSZwUWz7OPD9VxYMowfmjcfbA,1313
|
|
148
|
+
imio/smartweb/common/widgets/templates/ajaxselect_display.pt,sha256=v8TT2Xc19er6SUGWabgNfIdrayFYIjxyLK9H_XkIG3M,1209
|
|
149
|
+
imio_smartweb_common-1.2.33.dist-info/licenses/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
150
|
+
imio_smartweb_common-1.2.33.dist-info/licenses/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
|
|
151
|
+
imio_smartweb_common-1.2.33.dist-info/METADATA,sha256=5Do-lxg8Tx55jiys55rdTFw-mxmPz7Dg2gV176gimmE,18055
|
|
152
|
+
imio_smartweb_common-1.2.33.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
153
|
+
imio_smartweb_common-1.2.33.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
|
154
|
+
imio_smartweb_common-1.2.33.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
|
155
|
+
imio_smartweb_common-1.2.33.dist-info/RECORD,,
|
/imio.smartweb.common-1.2.31-py3.12-nspkg.pth → /imio.smartweb.common-1.2.33-py3.12-nspkg.pth
RENAMED
|
File without changes
|
{imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/licenses/LICENSE.GPL
RENAMED
|
File without changes
|
{imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/licenses/LICENSE.rst
RENAMED
|
File without changes
|
|
File without changes
|
{imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.33.dist-info}/top_level.txt
RENAMED
|
File without changes
|