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
Move "Scaling `direction` to be deprecated in favor of `mode`" into an "attention" admonition,
and change wording to be more clear about which form to use and when.
## Scaling `direction` deprecated in favor of `mode`
113
+
## Scaling `direction`to be deprecated in favor of `mode`
113
114
114
-
The actual scaling is done in `plone.scale`.
115
-
In Plone 6 in `plone.scale`, the `direction` argument is deprecated in favor of `mode`.
116
-
The values should be converted as follows:
115
+
```{attention}
116
+
In the upcoming release of Plone 6.0, in `plone.scale` the `direction` argument will be deprecated in favor of `mode`.
117
+
118
+
`plone.scale` will continue to do scaling, but the values should be converted in your code as follows:
117
119
118
120
direction values | mode values
119
121
-----------------|------------
@@ -124,13 +126,14 @@ up | cover
124
126
keep | scale
125
127
thumbnail | scale
126
128
127
-
For now `plone.namedfile` still expects the `direction` argument with the old values.
129
+
Until the final release of Plone 6.0, continue to use `plone.namedfile` with the `direction` argument and its values.
130
+
```
128
131
129
132
130
133
(classic-ui-images-permissions-label)=
131
134
132
135
## Permissions
133
136
134
137
The `ImageScaling` view explicitly checks the permissions of the current user.
135
-
To access image scales which are normally not accessible to the current user override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
138
+
To access image scales, which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
136
139
In `Products.EasyNewsletter` you can find an example of that.
0 commit comments