imio.smartweb.core 1.1.15__py3-none-any.whl → 1.1.19__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/browser/configure.zcml +1 -0
- imio/smartweb/core/browser/controlpanel.py +24 -0
- imio/smartweb/core/browser/dashboards/__init__.py +0 -0
- imio/smartweb/core/browser/dashboards/configure.zcml +17 -0
- imio/smartweb/core/browser/dashboards/plausible.pt +29 -0
- imio/smartweb/core/browser/dashboards/plausible.py +21 -0
- imio/smartweb/core/browser/faceted/map.pt +3 -7
- imio/smartweb/core/browser/utils.py +33 -0
- imio/smartweb/core/contents/__init__.py +4 -0
- imio/smartweb/core/contents/cropping.py +2 -5
- imio/smartweb/core/contents/folder/content.py +1 -0
- imio/smartweb/core/contents/rest/base.py +16 -0
- imio/smartweb/core/contents/rest/directory/endpoint.py +8 -15
- imio/smartweb/core/contents/rest/events/endpoint.py +6 -12
- imio/smartweb/core/contents/rest/news/endpoint.py +6 -11
- imio/smartweb/core/contents/rest/search/endpoint.py +26 -6
- imio/smartweb/core/contents/sections/configure.zcml +1 -0
- imio/smartweb/core/contents/sections/contact/view.pt +1 -2
- imio/smartweb/core/contents/sections/external_content/__init__.py +0 -0
- imio/smartweb/core/contents/sections/external_content/configure.zcml +14 -0
- imio/smartweb/core/contents/sections/external_content/content.py +32 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +31 -0
- imio/smartweb/core/contents/sections/external_content/views.py +31 -0
- imio/smartweb/core/contents/sections/gallery/view.pt +1 -2
- imio/smartweb/core/contents/sections/macros.pt +0 -4
- imio/smartweb/core/contents/sections/text/configure.zcml +0 -6
- imio/smartweb/core/contents/sections/text/content.py +0 -12
- imio/smartweb/core/contents/sections/text/forms.py +2 -0
- imio/smartweb/core/permissions.zcml +6 -0
- imio/smartweb/core/profiles/default/metadata.xml +1 -1
- imio/smartweb/core/profiles/default/rolemap.xml +6 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionContact.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionExternalContent.xml +35 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionGallery.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +1 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionLinks.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionMap.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionPostit.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSelections.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSendinblue.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSlide.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionText.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionVideo.xml +0 -1
- imio/smartweb/core/profiles/default/types.xml +1 -0
- imio/smartweb/core/profiles/default/workflows.xml +1 -0
- imio/smartweb/core/tests/resources/json_rest_directory.json +1099 -0
- imio/smartweb/core/tests/resources/json_rest_events.json +1099 -0
- imio/smartweb/core/tests/resources/json_rest_news.json +1103 -4
- imio/smartweb/core/tests/test_cropping.py +2 -24
- imio/smartweb/core/tests/test_folder.py +17 -0
- imio/smartweb/core/tests/test_plausibleview.py +83 -0
- imio/smartweb/core/tests/test_rest.py +40 -0
- imio/smartweb/core/tests/test_section_news.py +0 -1
- imio/smartweb/core/tests/test_sections.py +34 -0
- imio/smartweb/core/upgrades/configure.zcml +90 -0
- imio/smartweb/core/upgrades/profiles/1037_to_1038/registry/plausible.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/rolemap.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Page.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.PortalPage.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Procedure.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.SectionExternalContent.xml +36 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/types.xml +4 -0
- imio/smartweb/core/upgrades/profiles/1038_to_1039/workflows.xml +6 -0
- imio/smartweb/core/upgrades/profiles/1039_to_1040/types/imio.smartweb.SectionSlide.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1040_to_1041/types/imio.smartweb.SectionText.xml +17 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionContact.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionEvents.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionExternalContent.xml +15 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionFiles.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionGallery.xml +15 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionLinks.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionMap.xml +15 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionNews.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionPostit.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSelections.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSendinblue.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionVideo.xml +15 -0
- imio/smartweb/core/webcomponents/build/css/195.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/195.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/510.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/{462.smartweb-webcomponents-compiled.js → 565.smartweb-webcomponents-compiled.js} +1 -1
- imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js → 729.smartweb-webcomponents-compiled.js} +2 -2
- imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js.LICENSE.txt +2 -2
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +2 -3
- imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +1 -2
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +0 -1
- imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +1 -2
- imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +1 -1
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/METADATA +63 -1
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/RECORD +110 -78
- imio/smartweb/core/webcomponents/build/assets/img-placeholder-bla.a2b8b384c46ce56c99f042dc4625d309.png +0 -0
- imio/smartweb/core/webcomponents/build/js/650.smartweb-webcomponents-compiled.js +0 -2
- /imio/smartweb/core/webcomponents/build/js/{650.smartweb-webcomponents-compiled.js.LICENSE.txt → 212.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js.LICENSE.txt → 729.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.1.15-py3.10-nspkg.pth → /imio.smartweb.core-1.1.19-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/top_level.txt +0 -0
@@ -72,6 +72,12 @@
|
|
72
72
|
<role name="Local Manager" />
|
73
73
|
</permission>
|
74
74
|
|
75
|
+
<permission name="imio.smartweb.core: Can add section External Content" acquire="True">
|
76
|
+
<role name="Manager"/>
|
77
|
+
<role name="Site Administrator"/>
|
78
|
+
<role name="Local Manager" />
|
79
|
+
</permission>
|
80
|
+
|
75
81
|
<permission name="imio.smartweb.core: Manage taxonomies on this content" acquire="True">
|
76
82
|
<role name="Manager"/>
|
77
83
|
<role name="Site Administrator"/>
|
@@ -19,6 +19,7 @@
|
|
19
19
|
<property name="filter_content_types">True</property>
|
20
20
|
<property name="allowed_content_types">
|
21
21
|
<element value="imio.smartweb.SectionContact" />
|
22
|
+
<element value="imio.smartweb.SectionExternalContent" />
|
22
23
|
<element value="imio.smartweb.SectionFiles" />
|
23
24
|
<element value="imio.smartweb.SectionGallery" />
|
24
25
|
<element value="imio.smartweb.SectionHTML" />
|
@@ -20,6 +20,7 @@
|
|
20
20
|
<property name="allowed_content_types">
|
21
21
|
<element value="imio.smartweb.SectionCollection" />
|
22
22
|
<element value="imio.smartweb.SectionContact" />
|
23
|
+
<element value="imio.smartweb.SectionExternalContent" />
|
23
24
|
<element value="imio.smartweb.SectionGallery" />
|
24
25
|
<element value="imio.smartweb.SectionHTML" />
|
25
26
|
<element value="imio.smartweb.SectionEvents" />
|
@@ -19,6 +19,7 @@
|
|
19
19
|
<property name="filter_content_types">True</property>
|
20
20
|
<property name="allowed_content_types">
|
21
21
|
<element value="imio.smartweb.SectionContact" />
|
22
|
+
<element value="imio.smartweb.SectionExternalContent" />
|
22
23
|
<element value="imio.smartweb.SectionFiles" />
|
23
24
|
<element value="imio.smartweb.SectionGallery" />
|
24
25
|
<element value="imio.smartweb.SectionHTML" />
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
3
|
+
name="imio.smartweb.SectionExternalContent"
|
4
|
+
meta_type="Dexterity FTI"
|
5
|
+
i18n:domain="imio.smartweb">
|
6
|
+
|
7
|
+
<!-- Basic properties -->
|
8
|
+
<property
|
9
|
+
i18n:translate=""
|
10
|
+
name="title">External content section</property>
|
11
|
+
<property
|
12
|
+
i18n:translate=""
|
13
|
+
name="description">External content section for a page</property>
|
14
|
+
|
15
|
+
<property name="icon_expr">string:window-plus</property>
|
16
|
+
|
17
|
+
<!-- Hierarchy control -->
|
18
|
+
<property name="global_allow">False</property>
|
19
|
+
<property name="filter_content_types">True</property>
|
20
|
+
|
21
|
+
<!-- Schema, class and security -->
|
22
|
+
<!-- if we can add a page, we can add a page section -->
|
23
|
+
<property name="add_permission">imio.smartweb.core.CanManageSectionExternalContent</property>
|
24
|
+
<property name="klass">imio.smartweb.core.contents.SectionExternalContent</property>
|
25
|
+
<property name="schema">imio.smartweb.core.contents.ISectionExternalContent</property>
|
26
|
+
|
27
|
+
<!-- Enabled behaviors -->
|
28
|
+
<property name="behaviors" purge="false">
|
29
|
+
<element value="plone.namefromtitle"/>
|
30
|
+
<element value="plone.locking"/>
|
31
|
+
<element value="plone.shortname"/>
|
32
|
+
<element value="imio.smartweb.topics"/>
|
33
|
+
</property>
|
34
|
+
|
35
|
+
</object>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
i18n:translate=""
|
13
13
|
name="description">HTML section for a page</property>
|
14
14
|
|
15
|
-
<property name="icon_expr">string:
|
15
|
+
<property name="icon_expr">string:filetype-html</property>
|
16
16
|
|
17
17
|
<!-- Hierarchy control -->
|
18
18
|
<property name="global_allow">False</property>
|
@@ -14,6 +14,7 @@
|
|
14
14
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionCollection"/>
|
15
15
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionContact"/>
|
16
16
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionEvents"/>
|
17
|
+
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionExternalContent"/>
|
17
18
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionFiles"/>
|
18
19
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionGallery"/>
|
19
20
|
<object meta_type="Dexterity FTI" name="imio.smartweb.SectionHTML"/>
|
@@ -7,6 +7,7 @@
|
|
7
7
|
<type type_id="imio.smartweb.SectionCollection"/>
|
8
8
|
<type type_id="imio.smartweb.SectionContact"/>
|
9
9
|
<type type_id="imio.smartweb.SectionEvents"/>
|
10
|
+
<type type_id="imio.smartweb.SectionExternalContent"/>
|
10
11
|
<type type_id="imio.smartweb.SectionFiles"/>
|
11
12
|
<type type_id="imio.smartweb.SectionGallery"/>
|
12
13
|
<type type_id="imio.smartweb.SectionHTML"/>
|