You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/backend/upgrading/version_specific_migration/v60.md
+28-26Lines changed: 28 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,35 +122,36 @@ The training documentation lists {ref}`three possible theming strategies <traini
122
122
See [PLIP 3061](https://github.com/plone/Products.CMFPlone/issues/3061).
123
123
124
124
125
-
(v60--label)=
125
+
(v60-python-label)=
126
126
127
127
## Python
128
128
129
129
You may need to use a newer Python version.
130
-
Supported Python versions are: 3.7, 3.8 and 3.9.
130
+
Supported Python versions are 3.7, 3.8, and 3.9.
131
131
We recommend the most recent version.
132
132
See https://www.python.org/downloads/ for which Python version is still supported by the Python community.
133
133
134
134
See [PLIP 3229](https://github.com/plone/Products.CMFPlone/issues/3229).
135
135
136
136
137
-
(v60--label)=
137
+
(v60-plone.api.relation-label)=
138
138
139
139
## `plone.api.relation`
140
140
141
-
The `plone.api` package now has a `relation` module. Add-on authors may want to use this to get, create or delete relations.
141
+
The `plone.api` package now has a `relation` module.
142
+
Add-on authors may want to use this to get, create, or delete relations.
142
143
143
144
See [PLIP 3137](https://github.com/plone/Products.CMFPlone/issues/3137).
144
145
145
146
146
-
(v60--label)=
147
+
(v60-mockup-resource-registry-label)=
147
148
148
149
## Mockup and resource registry redone
149
150
150
151
Mockup contains the source of most Classic Plone JavaScript.
151
152
The compiled version is in `plone.staticresources`.
152
153
153
-
Mockup is now based on Patternslib 4.
154
+
Mockup is now based on [Patternslib 4](https://patternslib.com/).
154
155
It uses ES6 module imports instead of RequireJS.
155
156
Add-ons for Classic Plone that use JavaScript should be updated to use ES6 modules as well.
156
157
@@ -160,62 +161,63 @@ Add-ons for Classic Plone only need to register bundles, not individual resource
160
161
See [PLIP 3211](https://github.com/plone/Products.CMFPlone/issues/3211).
161
162
162
163
163
-
(v60--label)=
164
+
(v60-relations-control-panel-label)=
164
165
165
166
## Relations control panel
166
167
167
-
Plone 6 has a new control panel for relations:`@@inspect-relations`.
168
+
Plone 6 has a new control panel for relations,`@@inspect-relations`.
168
169
As Manager you may want to use this control panel to look for and fix possible problems.
169
170
170
171
See [PLIP 3232](https://github.com/plone/Products.CMFPlone/issues/3232).
171
172
172
173
173
-
(v60--label)=
174
+
(v60-deprecated-unicode-property-types-label)=
174
175
175
-
## Deprecated unicode property types
176
+
## Deprecated Unicode property types
176
177
177
-
Zope 5 has deprecated the unicode property types: ustring, ulines, utext, utokens.
178
-
If you use these in your add-on, you should switch to their standard variants: string, lines, text, tokens.
178
+
Zope 5 has deprecated the Unicode property types`ustring`, `ulines`, `utext`, and `utokens`.
179
+
If you use these in your add-on, you should switch to their standard variants`string`, `lines`, `text`, and `tokens`.
179
180
These behave exactly the same on Python 3.
180
-
Plone has an upgrade step that goes through all objects in the site, replacing the deprecated properties with the default ones, so you should not see them anymore.
181
-
But in your own code you should avoid adding them again.
181
+
Plone has an upgrade step that goes through all objects in the site, replacing the deprecated properties with the default ones.
182
+
You should avoid adding them to your code.
182
183
183
184
See [issue 3305](https://github.com/plone/Products.CMFPlone/issues/3305).
184
185
185
186
186
-
(v60--label)=
187
+
(v60-autoinclude-label)=
187
188
188
189
## autoinclude
189
190
190
191
We have replaced `z3c.autoinclude` with `plone.autoinclude`.
191
-
Both are used by add-ons (Python packages) to signal with an entry point that Plone must load the zcml of the add-on.
192
-
In most cases, the existing entry point can stay the same, for example in `setup.py`:
192
+
Both are used by add-ons (Python packages) to signal with an entry point that Plone must load the ZCML of the add-on.
193
+
In most cases, the existing entry point can stay the same.
194
+
For example in `setup.py`:
193
195
194
-
```
196
+
```python
195
197
entry_points="""
196
198
[z3c.autoinclude.plugin]
197
199
target = plone
198
200
"""
199
201
```
200
202
201
-
When your package name differs from your module name, so what you import in Python, you need a different entry point.
202
-
When your module is called`example.alternative`, create this entry point:
203
+
When your package name differs from your module name, you need to specify a differently named entry point.
204
+
When your module is named`example.alternative`, create this entry point:
203
205
204
-
```
206
+
```python
205
207
entry_points="""
206
208
[plone.autoinclude.plugin]
207
209
target = plone
208
210
module = example.alternative
209
211
"""
210
212
```
211
213
212
-
A second change that may influence add-ons, is that the`includeDependencies` directive is no longer supported.
214
+
The`includeDependencies` directive is no longer supported.
213
215
It was already recommended not to use this directive, as it is too implicit.
214
-
In the zcml files of your add-on, search for `includeDependencies`.
215
-
If you find it, you must replace it by explicitly loading any zcml from other packages that the add-on needs.
216
-
Sample change from [`dexterity.membrane`](https://github.com/collective/dexterity.membrane/pull/60):
216
+
In the ZCML files of your add-on, search for `includeDependencies`.
217
+
Replace all of its instances by explicitly loading any ZCML from other packages used by the add-on.
218
+
Here is a sample change from [`dexterity.membrane`](https://github.com/collective/dexterity.membrane/pull/60):
0 commit comments