imio.smartweb.core 1.2.39__py3-none-any.whl → 1.2.41__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/core/contents/rest/base.py +1 -1
- imio/smartweb/core/contents/rest/events/content.py +6 -0
- imio/smartweb/core/contents/rest/events/endpoint.py +2 -1
- imio/smartweb/core/contents/rest/events/view.pt +2 -1
- imio/smartweb/core/contents/rest/events/view.py +4 -0
- imio/smartweb/core/contents/rest/news/content.py +6 -0
- imio/smartweb/core/contents/rest/news/endpoint.py +1 -0
- imio/smartweb/core/contents/rest/news/view.pt +2 -1
- imio/smartweb/core/contents/rest/news/view.py +4 -0
- imio/smartweb/core/contents/sections/common_templates/table.pt +6 -2
- imio/smartweb/core/tests/test_rest.py +2 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/METADATA +18 -1
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/RECORD +19 -19
- /imio.smartweb.core-1.2.39-py3.10-nspkg.pth → /imio.smartweb.core-1.2.41-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/top_level.txt +0 -0
@@ -37,6 +37,12 @@ class IEventsView(model.Schema):
|
|
37
37
|
default=True,
|
38
38
|
)
|
39
39
|
|
40
|
+
display_agendas_titles = schema.Bool(
|
41
|
+
title=_("Display agendas titles"),
|
42
|
+
description=_("If checked, display agendas titles"),
|
43
|
+
required=False,
|
44
|
+
)
|
45
|
+
|
40
46
|
only_past_events = schema.Bool(
|
41
47
|
title=_("Display only past events"),
|
42
48
|
description=_("If selected, only past events will be displayed"),
|
@@ -13,7 +13,7 @@ from zope.interface import Interface
|
|
13
13
|
class BaseEventsEndpoint(BaseEndpoint):
|
14
14
|
def __call__(self):
|
15
15
|
results = super(BaseEventsEndpoint, self).__call__()
|
16
|
-
if not results.get("items"):
|
16
|
+
if not results or not results.get("items"):
|
17
17
|
return results
|
18
18
|
orientation = self.context.orientation
|
19
19
|
for result in results["items"]:
|
@@ -35,6 +35,7 @@ class BaseEventsEndpoint(BaseEndpoint):
|
|
35
35
|
params = [
|
36
36
|
"selected_agendas={}".format(self.context.selected_agenda),
|
37
37
|
"metadata_fields=category",
|
38
|
+
"metadata_fields=container_uid",
|
38
39
|
"metadata_fields=topics",
|
39
40
|
"metadata_fields=start",
|
40
41
|
"metadata_fields=end",
|
@@ -13,7 +13,8 @@
|
|
13
13
|
current-language view/current_language;
|
14
14
|
display-map view/display_map;
|
15
15
|
only-past-events view/only_past_events;
|
16
|
-
view-path view/view_path;
|
16
|
+
view-path view/view_path;
|
17
|
+
display_agendas_titles view/display_agendas_titles;"></smartweb-events>
|
17
18
|
</div>
|
18
19
|
</metal:main>
|
19
20
|
</body>
|
@@ -21,6 +21,12 @@ class INewsView(model.Schema):
|
|
21
21
|
title=_("Number of items to display"), default=20, required=True
|
22
22
|
)
|
23
23
|
|
24
|
+
display_newsfolders_titles = schema.Bool(
|
25
|
+
title=_("Display news folders titles"),
|
26
|
+
description=_("If checked, display news folders titles"),
|
27
|
+
required=False,
|
28
|
+
)
|
29
|
+
|
24
30
|
|
25
31
|
@implementer(INewsView)
|
26
32
|
class NewsView(RestView):
|
@@ -39,6 +39,7 @@ class BaseNewsEndpoint(BaseEndpoint):
|
|
39
39
|
"selected_news_folders={}".format(self.context.selected_news_folder),
|
40
40
|
"portal_type=imio.news.NewsItem",
|
41
41
|
"metadata_fields=category",
|
42
|
+
"metadata_fields=container_uid",
|
42
43
|
"metadata_fields=topics",
|
43
44
|
"metadata_fields=has_leadimage",
|
44
45
|
"metadata_fields=UID",
|
@@ -11,7 +11,8 @@
|
|
11
11
|
propose-url view/propose_url;
|
12
12
|
orientation view/orientation;
|
13
13
|
current-language view/current_language;
|
14
|
-
view-path view/view_path;
|
14
|
+
view-path view/view_path;
|
15
|
+
display_newsfolders_titles view/display_newsfolders_titles;"></smartweb-news>
|
15
16
|
</div>
|
16
17
|
</metal:main>
|
17
18
|
</body>
|
@@ -56,7 +56,8 @@
|
|
56
56
|
show_lead_image python:getattr(context, 'show_items_lead_image', True);
|
57
57
|
portal context/@@plone_portal_state/portal;
|
58
58
|
open_in_new_tab item/open_in_new_tab | nothing;"
|
59
|
-
|
59
|
+
tal:attributes="class string:table_display ${item/container_id | nothing};"
|
60
|
+
>
|
60
61
|
<a tal:attributes="class python:'table_image no-image' if no_icon_no_image else 'table_image';
|
61
62
|
href item/url;
|
62
63
|
target python:'_blank' if (open_in_new_tab and not can_edit_sections) else '';">
|
@@ -97,7 +98,10 @@
|
|
97
98
|
</tal:def>
|
98
99
|
</tal:if>
|
99
100
|
</div>
|
100
|
-
|
101
|
+
<div tal:condition="view/display_container_title"
|
102
|
+
class="auth_source_container_title"
|
103
|
+
tal:content="item/container_title | nothing">
|
104
|
+
</div>
|
101
105
|
<div class="table_title">
|
102
106
|
<span tal:content="item/title" />
|
103
107
|
</div>
|
@@ -369,6 +369,7 @@ class SectionsFunctionalTest(ImioSmartwebTestCase):
|
|
369
369
|
"http://localhost:8080/Plone/@events?"
|
370
370
|
"selected_agendas={}&"
|
371
371
|
"metadata_fields=category&"
|
372
|
+
"metadata_fields=container_uid&"
|
372
373
|
"metadata_fields=topics&"
|
373
374
|
"metadata_fields=start&"
|
374
375
|
"metadata_fields=end&"
|
@@ -425,6 +426,7 @@ class SectionsFunctionalTest(ImioSmartwebTestCase):
|
|
425
426
|
"selected_news_folders={}&"
|
426
427
|
"portal_type=imio.news.NewsItem&"
|
427
428
|
"metadata_fields=category&"
|
429
|
+
"metadata_fields=container_uid&"
|
428
430
|
"metadata_fields=topics&"
|
429
431
|
"metadata_fields=has_leadimage&"
|
430
432
|
"metadata_fields=UID&"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.41
|
4
4
|
Summary: Core product for iMio websites
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.core
|
6
6
|
Author: Christophe Boulanger
|
@@ -189,6 +189,23 @@ Changelog
|
|
189
189
|
=========
|
190
190
|
|
191
191
|
|
192
|
+
1.2.41 (2024-04-04)
|
193
|
+
-------------------
|
194
|
+
|
195
|
+
- Set higher timeout because retrieving some datas can take some time
|
196
|
+
[boulch]
|
197
|
+
|
198
|
+
|
199
|
+
1.2.40 (2024-04-02)
|
200
|
+
-------------------
|
201
|
+
|
202
|
+
- MWEBPM-9 : Add container_uid in rest views to retrieve agenda id/title or news folder id/title
|
203
|
+
[boulch]
|
204
|
+
|
205
|
+
- MWEBPM-9 : Retrieve agenda id/title or news folder id/title and display it in "common templates" table
|
206
|
+
[boulch]
|
207
|
+
|
208
|
+
|
192
209
|
1.2.39 (2024-03-28)
|
193
210
|
-------------------
|
194
211
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.2.
|
1
|
+
imio.smartweb.core-1.2.41-py3.10-nspkg.pth,sha256=wnCUSUElqssZ5FI3x-9HqwD229HQ-bAuPoDUNJHmMtU,1684
|
2
2
|
imio/smartweb/core/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
3
3
|
imio/smartweb/core/config.py,sha256=BUgfvh4hCaw0onCYAG4gQI1O4hZ-GzXWEltdHi4YLIs,337
|
4
4
|
imio/smartweb/core/configure.zcml,sha256=PeC4rF--rF6MfVQ0NzggQrZWIl35oPtJdEhvQwGxhhI,1459
|
@@ -191,7 +191,7 @@ imio/smartweb/core/contents/pages/procedure/content.py,sha256=e_kv7YsRF0vblfpxqq
|
|
191
191
|
imio/smartweb/core/contents/pages/procedure/utils.py,sha256=EATKvK72QPQheLXCXCoADYMjA3UfgPtkOPKdqnEyX64,1291
|
192
192
|
imio/smartweb/core/contents/pages/procedure/view.py,sha256=UeZwtdn20lCo7qbqqPcsD9LL69vNTq4m_wXB4nv8jMo,408
|
193
193
|
imio/smartweb/core/contents/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
194
|
-
imio/smartweb/core/contents/rest/base.py,sha256=
|
194
|
+
imio/smartweb/core/contents/rest/base.py,sha256=8VWBC7EKJUW6rNVH8DLD4JWGCHY7lDSQ-xJtEOsdBW0,2428
|
195
195
|
imio/smartweb/core/contents/rest/configure.zcml,sha256=vANiA3brvm8rsJIUSVNf0BdlEnejpEGXoC82-hpxKkA,433
|
196
196
|
imio/smartweb/core/contents/rest/traversal.py,sha256=KLNGhUmvTAzaRqSIzT3B28HgMBK4vcNV75AfyIesjN8,540
|
197
197
|
imio/smartweb/core/contents/rest/utils.py,sha256=3R8BSRBzYCTL5sBtVraoHvEwhN6e1PyUY5mjczKLlFk,3112
|
@@ -204,16 +204,16 @@ imio/smartweb/core/contents/rest/directory/view.pt,sha256=CN5111--p6j0xZ1Tm_Ohkw
|
|
204
204
|
imio/smartweb/core/contents/rest/directory/view.py,sha256=rN4k7sqrd32TNMBBOc7RQeosRgYM-dl645Pi1GjVvwA,507
|
205
205
|
imio/smartweb/core/contents/rest/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
206
206
|
imio/smartweb/core/contents/rest/events/configure.zcml,sha256=ufUHdGMkGd57zgZ4_DxvoK4Zn7_AC_A3_TnLkmdYRhs,1017
|
207
|
-
imio/smartweb/core/contents/rest/events/content.py,sha256=
|
208
|
-
imio/smartweb/core/contents/rest/events/endpoint.py,sha256=
|
209
|
-
imio/smartweb/core/contents/rest/events/view.pt,sha256=
|
210
|
-
imio/smartweb/core/contents/rest/events/view.py,sha256=
|
207
|
+
imio/smartweb/core/contents/rest/events/content.py,sha256=4T0dCsoQx6c1uxISEeqdUggI0q4YE80tQimhALwRmug,1665
|
208
|
+
imio/smartweb/core/contents/rest/events/endpoint.py,sha256=FDbcZYGMjUu9NwO8KBAenAuISGQbxnBQ5vvTeOLRltU,2641
|
209
|
+
imio/smartweb/core/contents/rest/events/view.pt,sha256=9q_Wk5vIcvP9zISBv8OrdeTB3kJoPCT0DydZ9qBFF-Q,986
|
210
|
+
imio/smartweb/core/contents/rest/events/view.py,sha256=WiqrMT_fS6JIRyBiDMmcgsHKCupI-CfYQh12yaZZQE8,694
|
211
211
|
imio/smartweb/core/contents/rest/news/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
212
212
|
imio/smartweb/core/contents/rest/news/configure.zcml,sha256=f1kNWMjcHul5_dKv51KY_GQII-Cvx-uL7N9Z25zlN8c,1005
|
213
|
-
imio/smartweb/core/contents/rest/news/content.py,sha256=
|
214
|
-
imio/smartweb/core/contents/rest/news/endpoint.py,sha256=
|
215
|
-
imio/smartweb/core/contents/rest/news/view.pt,sha256=
|
216
|
-
imio/smartweb/core/contents/rest/news/view.py,sha256=
|
213
|
+
imio/smartweb/core/contents/rest/news/content.py,sha256=gSyOuVlvv90HIWhjdABE7g4mngVF6agqZdC6pBDCgJI,946
|
214
|
+
imio/smartweb/core/contents/rest/news/endpoint.py,sha256=WnD0GRoWUXk_AhprfZhIQKjQEzukyf2Kz652bX4yY8A,2713
|
215
|
+
imio/smartweb/core/contents/rest/news/view.pt,sha256=b376PXHQdB0PQlGe1ylub8sjEqwHXmtAkQHReA0goss,864
|
216
|
+
imio/smartweb/core/contents/rest/news/view.py,sha256=ZmRZmb9FEKJE7K5Y07qYPmtT9sa2Rs6nN1n9DErzcSM,522
|
217
217
|
imio/smartweb/core/contents/rest/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
218
218
|
imio/smartweb/core/contents/rest/search/configure.zcml,sha256=BTFcBQ28NINyEfoVgYwJgf0JWvk99ewSKgOYx91lZy4,951
|
219
219
|
imio/smartweb/core/contents/rest/search/endpoint.py,sha256=i5LMM0R1Xvpy76JHO6pI98G41Xep15fPR9uv9rqropo,9797
|
@@ -228,7 +228,7 @@ imio/smartweb/core/contents/sections/collection/configure.zcml,sha256=Ak4UbKFjog
|
|
228
228
|
imio/smartweb/core/contents/sections/collection/content.py,sha256=DMmU9rIaRlbRjIaot5RHXu59vJmAbun0FCmyahWhBCM,2379
|
229
229
|
imio/smartweb/core/contents/sections/collection/views.py,sha256=G8Q7zlFmuEKKCmAGLj5cVL3axebzf5ZlSVRYx9q45U4,1470
|
230
230
|
imio/smartweb/core/contents/sections/common_templates/carousel.pt,sha256=vcRaxpkNYQHjyIcLJEiOPEZ2yOvZKkXr_28utTbDk5U,5694
|
231
|
-
imio/smartweb/core/contents/sections/common_templates/table.pt,sha256=
|
231
|
+
imio/smartweb/core/contents/sections/common_templates/table.pt,sha256=xr7HPyKP61RF75YnFUKPi_FudwVt_BJn3BzxXglQm3c,6769
|
232
232
|
imio/smartweb/core/contents/sections/contact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
233
233
|
imio/smartweb/core/contents/sections/contact/configure.zcml,sha256=WjyGXO7alNf4yDW5dZCS_xQ_AYbQVQuRVRIeoyLIBzY,1591
|
234
234
|
imio/smartweb/core/contents/sections/contact/content.py,sha256=SSeWBuqs1iDIhaGODI_gCsw4Q6ANBq6m7exZv1lPl_k,2669
|
@@ -400,7 +400,7 @@ imio/smartweb/core/tests/test_plausibleview.py,sha256=G1ryfnz3TuQBG8VFO5KzEylT5D
|
|
400
400
|
imio/smartweb/core/tests/test_portal_page.py,sha256=hIqg4eb91o8BsSj7eSKdvoxehzOXt8bzpg1o5ej__zg,7215
|
401
401
|
imio/smartweb/core/tests/test_procedure.py,sha256=0w8phOwYfpp9vb3KDsnwjX8AhQXWdodA06W4koderQo,6474
|
402
402
|
imio/smartweb/core/tests/test_redirect_to_main_react_view.py,sha256=k4gU6xBIA5m8Vrb27rt8nWCs8ix2Lf9j49WnIXl4eO0,2990
|
403
|
-
imio/smartweb/core/tests/test_rest.py,sha256=
|
403
|
+
imio/smartweb/core/tests/test_rest.py,sha256=y2aM_D69zi1GDhheqBANBqMLIEAFEUIKaDQPJkx7U50,25116
|
404
404
|
imio/smartweb/core/tests/test_robot.py,sha256=NQ7AkN4tEva3bgGjMxmyqY0zIo4pJPnPOwnD9hmrTVI,926
|
405
405
|
imio/smartweb/core/tests/test_search.py,sha256=VryeRI4_5CvnStKOoNoG95M2WTy7Lyy_AhHIDG40M14,2182
|
406
406
|
imio/smartweb/core/tests/test_section_contact.py,sha256=vwCcls19KSiciaAXYG7C3SwOMWao8VGcnLvsU8ikxB0,23166
|
@@ -719,10 +719,10 @@ imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=x9xi6Ym29ENfIdeysHeh0g
|
|
719
719
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=xXWz0O-JBwSZrzz2XeQdN4nZEOjppU2sVFtlLQOitQ8,77
|
720
720
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=SmhBsvncTNx95019NNz5uAm1foKqeKjcC5i9ZMo1G3E,6629
|
721
721
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
722
|
-
imio.smartweb.core-1.2.
|
723
|
-
imio.smartweb.core-1.2.
|
724
|
-
imio.smartweb.core-1.2.
|
725
|
-
imio.smartweb.core-1.2.
|
726
|
-
imio.smartweb.core-1.2.
|
727
|
-
imio.smartweb.core-1.2.
|
728
|
-
imio.smartweb.core-1.2.
|
722
|
+
imio.smartweb.core-1.2.41.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
723
|
+
imio.smartweb.core-1.2.41.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
724
|
+
imio.smartweb.core-1.2.41.dist-info/METADATA,sha256=OXghS94hSzjWYGl2V84xbHpBWnKF4ZIRaAR5XxfQSxc,51300
|
725
|
+
imio.smartweb.core-1.2.41.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
726
|
+
imio.smartweb.core-1.2.41.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
727
|
+
imio.smartweb.core-1.2.41.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
728
|
+
imio.smartweb.core-1.2.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{imio.smartweb.core-1.2.39.dist-info → imio.smartweb.core-1.2.41.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|