imio.smartweb.common 1.2.31__py3-none-any.whl → 1.2.32__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 +3 -0
- imio/smartweb/common/interfaces.py +5 -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.32.dist-info}/METADATA +8 -1
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/RECORD +13 -11
- /imio.smartweb.common-1.2.31-py3.12-nspkg.pth → /imio.smartweb.common-1.2.32-py3.12-nspkg.pth +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/WHEEL +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/licenses/LICENSE.GPL +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/licenses/LICENSE.rst +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/namespace_packages.txt +0 -0
- {imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/top_level.txt +0 -0
|
@@ -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."""
|
|
@@ -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.32
|
|
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,13 @@ Changelog
|
|
|
178
178
|
=========
|
|
179
179
|
|
|
180
180
|
|
|
181
|
+
1.2.32 (2025-05-19)
|
|
182
|
+
-------------------
|
|
183
|
+
|
|
184
|
+
- WEB-4250 : Quick fix : Since Plone 6.1, AjaxSelectWidget is displaying in edit mode even if mode is "display"
|
|
185
|
+
[boulch]
|
|
186
|
+
|
|
187
|
+
|
|
181
188
|
1.2.31 (2025-05-15)
|
|
182
189
|
-------------------
|
|
183
190
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
imio.smartweb.common-1.2.
|
|
1
|
+
imio.smartweb.common-1.2.32-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=h0D6fBNURlPdrpDNTW_o_crZMsuXm8sqoMSZMv3ZUhk,1005
|
|
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
|
|
@@ -22,6 +22,7 @@ imio/smartweb/common/testing.zcml,sha256=7N-ALtklyWeLSzZmlxN2Tp-aZe_3An--w_6BGl1
|
|
|
22
22
|
imio/smartweb/common/utils.py,sha256=sSq72k41ELmlW5jc7JkRgKLXKQbbd68-87JtEDHmTCQ,7738
|
|
23
23
|
imio/smartweb/common/vocabularies.py,sha256=QRIOWLOALzZDM92o1iUTWgDBBcrdd9BYz7miNjpYCDA,3835
|
|
24
24
|
imio/smartweb/common/vocabularies.zcml,sha256=iFJer5q3wabBp_EZivPPVUqI1_9w5P_Ft1RGJB5Yqxs,940
|
|
25
|
+
imio/smartweb/common/widgets.zcml,sha256=GQ0aJblx44OJpj0HGXiyQJnFeSaJlOTMd1RAZn_1Qgk,375
|
|
25
26
|
imio/smartweb/common/behaviors/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
26
27
|
imio/smartweb/common/behaviors/configure.zcml,sha256=RfGH8DIybHpxxe2HUsjH2QKSiWYpV7lCZhGN6KLFwCw,531
|
|
27
28
|
imio/smartweb/common/behaviors/iam.py,sha256=17ON7M6FHXOM_8NOHT_QnJJuAIs4diWCrguHP6Lh5oA,825
|
|
@@ -139,11 +140,12 @@ imio/smartweb/common/viewlets/privacy.py,sha256=H752etTTIFCM0wTwjESQFl0PStJfCoSR
|
|
|
139
140
|
imio/smartweb/common/viewlets/skip_to_content.pt,sha256=-tb3HkoGG8H_gBZL4eiJrPcWC6hxBEjb-KqP0co7zeY,386
|
|
140
141
|
imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
|
|
141
142
|
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.
|
|
143
|
+
imio/smartweb/common/widgets/select.py,sha256=5sV0UIgwu4AvwpgVmJeSZwUWz7OPD9VxYMowfmjcfbA,1313
|
|
144
|
+
imio/smartweb/common/widgets/templates/ajaxselect_display.pt,sha256=v8TT2Xc19er6SUGWabgNfIdrayFYIjxyLK9H_XkIG3M,1209
|
|
145
|
+
imio_smartweb_common-1.2.32.dist-info/licenses/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
146
|
+
imio_smartweb_common-1.2.32.dist-info/licenses/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
|
|
147
|
+
imio_smartweb_common-1.2.32.dist-info/METADATA,sha256=tBfxVibCNxxZfJR5roL6ZKoPDHTquJ9qmWkfg5CeoF8,17812
|
|
148
|
+
imio_smartweb_common-1.2.32.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
149
|
+
imio_smartweb_common-1.2.32.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
|
150
|
+
imio_smartweb_common-1.2.32.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
|
151
|
+
imio_smartweb_common-1.2.32.dist-info/RECORD,,
|
/imio.smartweb.common-1.2.31-py3.12-nspkg.pth → /imio.smartweb.common-1.2.32-py3.12-nspkg.pth
RENAMED
|
File without changes
|
|
File without changes
|
{imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.dist-info}/licenses/LICENSE.GPL
RENAMED
|
File without changes
|
{imio_smartweb_common-1.2.31.dist-info → imio_smartweb_common-1.2.32.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.32.dist-info}/top_level.txt
RENAMED
|
File without changes
|