imio.smartweb.core 1.3.9__py3-none-any.whl → 1.4.1__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 +24 -12
- imio/smartweb/core/browser/faceted/map.pt +1 -3
- imio/smartweb/core/browser/templates/singlecheckboxbool_hidden.pt +21 -0
- imio/smartweb/core/configure.zcml +12 -6
- imio/smartweb/core/contents/pages/view_section.pt +1 -2
- imio/smartweb/core/profiles/default/metadata.xml +1 -0
- imio/smartweb/core/viewlets/ogptags.py +6 -12
- imio/smartweb/core/webcomponents/build/js/141.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/141.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -3
- imio/smartweb/core/webcomponents/build/js/21.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/491.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/666.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/922.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +57 -0
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +47 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +69 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +47 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +69 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +48 -0
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info}/METADATA +58 -8
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info}/RECORD +36 -35
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info}/WHEEL +1 -1
- imio/smartweb/core/webcomponents/build/js/15.smartweb-webcomponents-compiled.js +0 -2
- /imio/smartweb/core/webcomponents/build/js/{15.smartweb-webcomponents-compiled.js.LICENSE.txt → 491.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.3.9-py3.8-nspkg.pth → /imio.smartweb.core-1.4.1-py3.12-nspkg.pth +0 -0
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info/licenses}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info/licenses}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.3.9.dist-info → imio_smartweb_core-1.4.1.dist-info}/top_level.txt +0 -0
@@ -1,11 +1,15 @@
|
|
1
1
|
<configure
|
2
2
|
xmlns="http://namespaces.zope.org/zope"
|
3
|
-
xmlns:z3c="http://namespaces.zope.org/z3c"
|
4
3
|
xmlns:browser="http://namespaces.zope.org/browser"
|
5
|
-
xmlns:plone="http://namespaces.plone.org/plone"
|
4
|
+
xmlns:plone="http://namespaces.plone.org/plone"
|
5
|
+
xmlns:z3c="http://namespaces.zope.org/z3c"
|
6
|
+
>
|
6
7
|
|
7
8
|
<!-- Set overrides folder for Just-a-Bunch-Of-Templates product -->
|
8
|
-
<include
|
9
|
+
<include
|
10
|
+
package="z3c.jbot"
|
11
|
+
file="meta.zcml"
|
12
|
+
/>
|
9
13
|
<browser:jbot
|
10
14
|
directory="overrides"
|
11
15
|
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
@@ -23,22 +27,22 @@
|
|
23
27
|
|
24
28
|
<!-- Publish static files -->
|
25
29
|
<plone:static
|
30
|
+
directory="static"
|
26
31
|
name="imio.smartweb.core"
|
27
32
|
type="plone"
|
28
|
-
directory="static"
|
29
33
|
/>
|
30
34
|
|
31
35
|
<browser:page
|
32
|
-
for="*"
|
33
36
|
name="plone_layout"
|
37
|
+
for="*"
|
34
38
|
class=".layout.LayoutPolicy"
|
35
39
|
permission="zope.Public"
|
36
40
|
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
37
41
|
/>
|
38
42
|
|
39
43
|
<browser:page
|
40
|
-
for="*"
|
41
44
|
name="smartwebiconresolver"
|
45
|
+
for="*"
|
42
46
|
class=".icons.SmartwebIconsView"
|
43
47
|
permission="zope.Public"
|
44
48
|
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
@@ -56,23 +60,23 @@
|
|
56
60
|
name="utils"
|
57
61
|
for="*"
|
58
62
|
class=".utils.UtilsView"
|
59
|
-
permission="zope2.View"
|
60
63
|
allowed_attributes="is_previewable_content map_configuration is_plausible_set"
|
64
|
+
permission="zope2.View"
|
61
65
|
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
62
66
|
/>
|
63
67
|
|
64
68
|
<!-- Custom edit view -->
|
65
69
|
<browser:page
|
66
|
-
for="plone.dexterity.interfaces.IDexterityContent"
|
67
70
|
name="edit"
|
71
|
+
for="plone.dexterity.interfaces.IDexterityContent"
|
68
72
|
class=".forms.SmartwebCustomEditView"
|
69
73
|
permission="cmf.ModifyPortalContent"
|
70
74
|
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
71
75
|
/>
|
72
76
|
|
73
77
|
<browser:page
|
74
|
-
for="*"
|
75
78
|
name="has_gdpr_text"
|
79
|
+
for="*"
|
76
80
|
class=".utils.UtilsView"
|
77
81
|
attribute="has_gdpr_text"
|
78
82
|
permission="zope.Public"
|
@@ -80,8 +84,8 @@
|
|
80
84
|
/>
|
81
85
|
|
82
86
|
<browser:page
|
83
|
-
for="*"
|
84
87
|
name="is_eguichet_aware"
|
88
|
+
for="*"
|
85
89
|
class=".utils.UtilsView"
|
86
90
|
attribute="is_eguichet_aware"
|
87
91
|
permission="zope.Public"
|
@@ -145,10 +149,18 @@
|
|
145
149
|
/>
|
146
150
|
|
147
151
|
<z3c:widgetTemplate
|
148
|
-
mode="input"
|
149
152
|
widget="plone.app.z3cform.interfaces.ILinkWidget"
|
150
|
-
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
151
153
|
template="templates/link_input.pt"
|
154
|
+
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
155
|
+
mode="input"
|
156
|
+
/>
|
157
|
+
|
158
|
+
<z3c:widgetTemplate
|
159
|
+
field="zope.schema.interfaces.IBool"
|
160
|
+
widget="plone.app.z3cform.interfaces.ISingleCheckBoxBoolWidget"
|
161
|
+
template="templates/singlecheckboxbool_hidden.pt"
|
162
|
+
layer="imio.smartweb.core.interfaces.IImioSmartwebCoreLayer"
|
163
|
+
mode="hidden"
|
152
164
|
/>
|
153
165
|
|
154
166
|
</configure>
|
@@ -32,9 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
<div class=""
|
35
|
-
tal:define="portal_type brain/portal_type|string:;
|
36
|
-
useViewTypes brain/portal_properties/site_properties/typesUseViewActionInListings|python:[];
|
37
|
-
useView python:portal_type in useViewTypes;"
|
35
|
+
tal:define="portal_type brain/portal_type|string:;"
|
38
36
|
tal:attributes="data-index python:self.get_index(brain);
|
39
37
|
class python:self.css_class(brain)">
|
40
38
|
<a tal:define="description brain/Description|string:;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
2
|
+
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
3
|
+
tal:omit-tag=""
|
4
|
+
>
|
5
|
+
<tal:items repeat="item view/items">
|
6
|
+
<input id="${item/id}"
|
7
|
+
name="${item/name}"
|
8
|
+
type="hidden"
|
9
|
+
value="${item/value}"
|
10
|
+
tal:condition="item/checked"
|
11
|
+
/>
|
12
|
+
</tal:items>
|
13
|
+
|
14
|
+
<input name="field-empty-marker"
|
15
|
+
type="hidden"
|
16
|
+
value="1"
|
17
|
+
tal:attributes="
|
18
|
+
name string:${view/name}-empty-marker;
|
19
|
+
"
|
20
|
+
/>
|
21
|
+
</html>
|
@@ -1,9 +1,15 @@
|
|
1
|
-
<configure
|
2
|
-
xmlns="http://namespaces.zope.org/zope">
|
1
|
+
<configure xmlns="http://namespaces.zope.org/zope">
|
3
2
|
|
4
|
-
<include
|
5
|
-
|
3
|
+
<include
|
4
|
+
package="z3c.unconfigure"
|
5
|
+
file="meta.zcml"
|
6
|
+
/>
|
7
|
+
<include
|
8
|
+
package="Products.CMFCore"
|
9
|
+
file="permissions.zcml"
|
10
|
+
/>
|
6
11
|
<include package="plone.app.imagecropping" />
|
12
|
+
<include package="plone.app.discussion" />
|
7
13
|
<include package="eea.facetednavigation" />
|
8
14
|
<include package="collective.autopublishing" />
|
9
15
|
<include package="collective.faceted.map" />
|
@@ -14,10 +20,10 @@
|
|
14
20
|
<include package="collective.solr" />
|
15
21
|
<include package="collective.taxonomy" />
|
16
22
|
<include package="collective.z3cform.datagridfield" />
|
17
|
-
|
23
|
+
|
18
24
|
<!-- Call this one before overrides adapter zope.container.interfaces.INameChooser-->
|
19
25
|
<include package="plone.app.content" />
|
20
|
-
|
26
|
+
|
21
27
|
<!-- Temporary fix for plone.gallery 1.0.1 -->
|
22
28
|
<include package="plone.app.contentmenu" />
|
23
29
|
<include package="plone.gallery" />
|
@@ -20,8 +20,7 @@
|
|
20
20
|
lang portal_state/language;
|
21
21
|
dummy python: plone_layout.mark_view(view);
|
22
22
|
portal_url portal_state/portal_url;
|
23
|
-
checkPermission nocall: context/portal_membership/checkPermission;
|
24
|
-
site_properties context/portal_properties/site_properties;">
|
23
|
+
checkPermission nocall: context/portal_membership/checkPermission;">
|
25
24
|
|
26
25
|
<div metal:use-macro="item_macro">
|
27
26
|
content
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<version>1068</version>
|
4
4
|
<dependencies>
|
5
5
|
<dependency>profile-plone.app.dexterity:default</dependency>
|
6
|
+
<dependency>profile-plone.app.discussion:default</dependency>
|
6
7
|
<dependency>profile-plone.app.imagecropping:default</dependency>
|
7
8
|
<dependency>profile-eea.facetednavigation:default</dependency>
|
8
9
|
<dependency>profile-collective.anysurfer:default</dependency>
|
@@ -31,7 +31,7 @@ class OgpTagsViewlet(HeaderViewlet):
|
|
31
31
|
|
32
32
|
def set_ogp_informations_for_view(self):
|
33
33
|
self._item = {
|
34
|
-
"title": self.context.Title,
|
34
|
+
"title": self.context.Title(),
|
35
35
|
"description": self.context.description,
|
36
36
|
"url": self.context.absolute_url(),
|
37
37
|
}
|
@@ -68,24 +68,15 @@ class OgpTagsViewlet(HeaderViewlet):
|
|
68
68
|
if IDirectoryView.providedBy(self.context):
|
69
69
|
params = "fullobjects=1"
|
70
70
|
auth_source_url = DIRECTORY_URL
|
71
|
-
client_id = os.environ.get("RESTAPI_DIRECTORY_CLIENT_ID")
|
72
|
-
client_secret = os.environ.get("RESTAPI_DIRECTORY_CLIENT_SECRET")
|
73
71
|
elif IEventsView.providedBy(self.context):
|
74
72
|
params = "metadata_fields=category&metadata_fields=local_category&metadata_fields=container_uid&metadata_fields=topics&metadata_fields=start&metadata_fields=end&metadata_fields=has_leadimage&metadata_fields=UID&fullobjects=1"
|
75
73
|
auth_source_url = EVENTS_URL
|
76
74
|
endpoint = "@events"
|
77
|
-
client_id = os.environ.get("RESTAPI_EVENTS_CLIENT_ID")
|
78
|
-
client_secret = os.environ.get("RESTAPI_EVENTS_CLIENT_SECRET")
|
79
75
|
elif INewsView.providedBy(self.context):
|
80
76
|
params = "fullobjects=1"
|
81
77
|
auth_source_url = NEWS_URL
|
82
|
-
client_id = os.environ.get("RESTAPI_NEWS_CLIENT_ID")
|
83
|
-
client_secret = os.environ.get("RESTAPI_NEWS_CLIENT_SECRET")
|
84
|
-
auth = get_wca_token(client_id, client_secret)
|
85
|
-
if not auth:
|
86
|
-
return
|
87
78
|
auth_source_url = f"{auth_source_url}/{endpoint}?UID={uid}&{params}"
|
88
|
-
result_json = get_json(auth_source_url
|
79
|
+
result_json = get_json(auth_source_url)
|
89
80
|
if result_json:
|
90
81
|
self._item = result_json["items"][0]
|
91
82
|
self._set_image()
|
@@ -118,7 +109,10 @@ class OgpTagsViewlet(HeaderViewlet):
|
|
118
109
|
def description(self):
|
119
110
|
if not self._item:
|
120
111
|
return ""
|
121
|
-
|
112
|
+
subtitle = self._item.get("subtitle", "")
|
113
|
+
description = self._item.get("description", "")
|
114
|
+
result = " - ".join(filter(None, [subtitle, description]))
|
115
|
+
return result
|
122
116
|
|
123
117
|
@property
|
124
118
|
def url(self):
|