Skip to content

Commit e17f56c

Browse files
authored
feat: update i-am folder links on startup when the environment variable HOSTNAME_HOST changes (#21)
* feat: update i-am folder links on startup when the environment variable HOSTNAME_HOST changes WEB-4332 * fix: black
1 parent 5b08eb7 commit e17f56c

26 files changed

+871
-8
lines changed

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Changelog
55
1.2.14 (unreleased)
66
-------------------
77

8-
- Nothing changed yet.
8+
- WEB-4332 : Update i-am folder links on startup when the environment variable HOSTNAME_HOST changes
9+
[remdub]
910

1011

1112
1.2.13 (2025-11-13)
@@ -18,7 +19,7 @@ Changelog
1819
1.2.12 (2025-11-07)
1920
-------------------
2021

21-
- WEB-4325 : Return to a previous version of plone.patternslib (9.9.16).
22+
- WEB-4325 : Return to a previous version of plone.patternslib (9.9.16).
2223
(Avoid an issue with plone.patternslib 9.10.3.1
2324
[boulch]
2425

src/imio/smartweb/policy/profiles.zcml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030
post_handler=".setuphandlers.setup_multilingual"
3131
/>
3232

33+
<genericsetup:registerProfile
34+
name="testing"
35+
title="imio.smartweb.policy (testing)"
36+
directory="profiles/testing"
37+
description="Installs the imio.smartweb.policy testing configuration"
38+
provides="Products.GenericSetup.interfaces.EXTENSION"
39+
post_handler=".setuphandlers.post_install"
40+
/>
41+
3342
<genericsetup:registerProfile
3443
name="uninstall"
3544
title="imio.smartweb.policy (uninstall)"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<layers>
3+
<layer
4+
name="imio.smartweb.policy"
5+
interface="imio.smartweb.policy.interfaces.IImioSmartwebPolicyLayer"
6+
/>
7+
</layers>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0"?>
2+
<object name="portal_controlpanel">
3+
<configlet
4+
title="Member Fields"
5+
action_id="MemberFields"
6+
appId="MemberFields"
7+
category="plone-users"
8+
condition_expr=""
9+
icon_expr="string:card-list"
10+
url_expr="string:${portal_url}/@@member-fields"
11+
visible="True">
12+
<permission>Smartweb: Manager-only configlets</permission>
13+
</configlet>
14+
15+
<configlet
16+
title="User and Group Settings"
17+
action_id="UsersGroupsSettings"
18+
appId="UsersGroupsSettings"
19+
category="plone-users"
20+
condition_expr=""
21+
icon_expr="string:toggles"
22+
url_expr="string:${portal_url}/@@usergroup-controlpanel"
23+
visible="True">
24+
<permission>Smartweb: Manager-only configlets</permission>
25+
</configlet>
26+
27+
<configlet
28+
title="Anysurfer"
29+
action_id="anysurfer"
30+
appId="collective.anysurfer"
31+
category="Products"
32+
condition_expr=""
33+
url_expr="string:${portal_url}/@@anysurfer-settings"
34+
icon_expr="string:$portal_url/++resource++collective.anysurfer/anysurfer.png"
35+
visible="True">
36+
<permission>Smartweb: Manage configlets</permission>
37+
</configlet>
38+
39+
</object>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<metadata>
3+
<version>1</version>
4+
<dependencies>
5+
<dependency>profile-plone.app.contenttypes:plone-content</dependency>
6+
<dependency>profile-plone.app.caching:default</dependency>
7+
<dependency>profile-plone.app.discussion:default</dependency>
8+
<dependency>profile-collective.autopublishing:default</dependency>
9+
<dependency>profile-collective.autoscaling:default</dependency>
10+
<dependency>profile-collective.messagesviewlet:default</dependency>
11+
<dependency>profile-collective.solr:default</dependency>
12+
<dependency>profile-eea.facetednavigation:default</dependency>
13+
<dependency>profile-imio.gdpr:default</dependency>
14+
<dependency>profile-imio.smartweb.core:default</dependency>
15+
<dependency>profile-pas.plugins.kimug:default</dependency>
16+
</dependencies>
17+
</metadata>
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
<?xml version="1.0"?>
2+
<registry
3+
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
4+
i18n:domain="imio.smartweb">
5+
6+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.clear_expiration_on_publish"
7+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema"
8+
field="clear_expiration_on_publish">
9+
<value>True</value>
10+
</record>
11+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.overwrite_expiration_on_retract"
12+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema"
13+
field="overwrite_expiration_on_retract">
14+
<value>True</value>
15+
</record>
16+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.dry_run"
17+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema"
18+
field="dry_run">
19+
<value>False</value>
20+
</record>
21+
22+
<!-- Publishing complex record -->
23+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.date_index"
24+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
25+
field="date_index">
26+
<field type="plone.registry.field.TextLine">
27+
<default>effective</default>
28+
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n"
29+
ns0:domain="collective.autopublishing"
30+
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description>
31+
<missing_value>effective</missing_value>
32+
<required>False</required>
33+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
34+
ns0:domain="collective.autopublishing"
35+
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title>
36+
</field>
37+
<value>effective</value>
38+
</record>
39+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.initial_state"
40+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
41+
field="initial_state">
42+
<field type="plone.registry.field.TextLine">
43+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
44+
ns0:domain="collective.autopublishing"
45+
ns0:translate="label_initial_state">Initial workflow state</title>
46+
</field>
47+
<value>private</value>
48+
</record>
49+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.portal_types"
50+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
51+
field="portal_types">
52+
<field type="plone.registry.field.Tuple">
53+
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n"
54+
ns0:domain="collective.autopublishing"
55+
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description>
56+
<missing_value/>
57+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
58+
ns0:domain="collective.autopublishing"
59+
ns0:translate="">Content types</title>
60+
<value_type type="plone.registry.field.Choice">
61+
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary>
62+
</value_type>
63+
</field>
64+
<value>
65+
<element>Collection</element>
66+
<element>imio.smartweb.DirectoryView</element>
67+
<element>imio.smartweb.EventsView</element>
68+
<element>imio.smartweb.Folder</element>
69+
<element>imio.smartweb.NewsView</element>
70+
<element>imio.smartweb.Page</element>
71+
<element>imio.smartweb.PortalPage</element>
72+
<element>imio.smartweb.Procedure</element>
73+
</value>
74+
</record>
75+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.transition"
76+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
77+
field="transition">
78+
<field type="plone.registry.field.TextLine">
79+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
80+
ns0:domain="collective.autopublishing"
81+
ns0:translate="label_transition">Transition from initial state</title>
82+
</field>
83+
<value>publish</value>
84+
</record>
85+
86+
<!-- Retracting complex record -->
87+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.date_index"
88+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
89+
field="date_index">
90+
<field type="plone.registry.field.TextLine">
91+
<default>effective</default>
92+
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n"
93+
ns0:domain="collective.autopublishing"
94+
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description>
95+
<missing_value>effective</missing_value>
96+
<required>False</required>
97+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
98+
ns0:domain="collective.autopublishing"
99+
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title>
100+
</field>
101+
<value>effective</value>
102+
</record>
103+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.initial_state"
104+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
105+
field="initial_state">
106+
<field type="plone.registry.field.TextLine">
107+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
108+
ns0:domain="collective.autopublishing"
109+
ns0:translate="label_initial_state">Initial workflow state</title>
110+
</field>
111+
<value>published</value>
112+
</record>
113+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.portal_types"
114+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
115+
field="portal_types">
116+
<field type="plone.registry.field.Tuple">
117+
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n"
118+
ns0:domain="collective.autopublishing"
119+
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description>
120+
<missing_value/>
121+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
122+
ns0:domain="collective.autopublishing"
123+
ns0:translate="">Content types</title>
124+
<value_type type="plone.registry.field.Choice">
125+
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary>
126+
</value_type>
127+
</field>
128+
<value>
129+
<element>Collection</element>
130+
<element>imio.smartweb.DirectoryView</element>
131+
<element>imio.smartweb.EventsView</element>
132+
<element>imio.smartweb.Folder</element>
133+
<element>imio.smartweb.NewsView</element>
134+
<element>imio.smartweb.Page</element>
135+
<element>imio.smartweb.PortalPage</element>
136+
<element>imio.smartweb.Procedure</element>
137+
</value>
138+
</record>
139+
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.transition"
140+
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification"
141+
field="transition">
142+
<field type="plone.registry.field.TextLine">
143+
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n"
144+
ns0:domain="collective.autopublishing"
145+
ns0:translate="label_transition">Transition from initial state</title>
146+
</field>
147+
<value>retract</value>
148+
</record>
149+
150+
</registry>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
<registry>
3+
4+
<record name="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings.image_max_height"
5+
interface="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings"
6+
field="image_max_height">
7+
<value>1536</value>
8+
</record>
9+
<record name="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings.image_max_width"
10+
interface="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings"
11+
field="image_max_width">
12+
<value>2048</value>
13+
</record>
14+
<record name="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings.image_quality"
15+
interface="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings"
16+
field="image_quality">
17+
<value>92</value>
18+
</record>
19+
<record name="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings.is_enabled"
20+
interface="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings"
21+
field="is_enabled">
22+
<value>True</value>
23+
</record>
24+
<record name="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings.show_message"
25+
interface="collective.autoscaling.interfaces.ICollectiveAutoscalingSettings"
26+
field="show_message">
27+
<value>True</value>
28+
</record>
29+
30+
</registry>

0 commit comments

Comments
 (0)