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
## Scaling `direction` deprecated in favor of `mode`
96
112
97
-
The actual scaling is done in plone.scale:
98
-
In plone scale the `direction` argument is deprecated in favor of `mode` and values are converted as follow:
113
+
The actual scaling is done in `plone.scale`.
114
+
In Plone 6 in `plone.scale`, the `direction` argument is deprecated in favor of `mode`.
115
+
The values should be converted as follows:
99
116
100
117
direction values | mode values
101
118
-----------------|------------
@@ -106,9 +123,13 @@ up | cover
106
123
keep | scale
107
124
thumbnail | scale
108
125
109
-
For now plone.namedfile is still expecting the direction argument with the old values.
126
+
For now `plone.namedfile`still expects the `direction` argument with the old values.
110
127
111
-
## Permissions
112
128
113
-
The ImageScaling view is checking explicitly the permissions the current user has, in case you want to access objects which are normally not accessible to the current user, you have to override the validate_access method in ImageScale. In Products.EasyNewsletter you can find an example of that.
129
+
(classic-ui-images-label)=
130
+
131
+
## Permissions
114
132
133
+
The `ImageScaling` view explicitly checks the permissions of the current user.
134
+
If you want to access objects which are normally not accessible to the current user, then you have to override the `validate_access` method in `ImageScale`.
135
+
In `Products.EasyNewsletter` you can find an example of that.
0 commit comments