Skip to content

Commit edd25e9

Browse files
committed
resolve merge conflicts
1 parent 0d37e1a commit edd25e9

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

docs/classic-ui/images.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,9 @@ To get the scaling information only without creating an HTML tag, you can use th
107107
from plone import api
108108

109109
scale_util = api.content.get_view("images", context, request)
110-
<<<<<<< HEAD
111110
# on the following line "image" is the field name.
112111
# The default Image content types field name is "image".
113112
image_scale = scale_util.scale("image", scale="mini")
114-
=======
115-
# The default `Image` content type's field name is "image".
116-
# On the following line of code, "leadimage" is the field name.
117-
image_scale = scale_util.scale("leadimage", scale="mini")
118-
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c
119113
print(image_scale.url)
120114
print(image_scale.width)
121115
print(image_scale.height)
@@ -211,42 +205,23 @@ image_scale = scaling_util.publishTraverse(context.REQUEST, groups[1])
211205

212206
(classic-ui-images-scaling-direction-deprecated-in-favor-of-label)=
213207

214-
<<<<<<< HEAD
215208
## Scaling `direction`
216209

217210
The default direction is `thumbnail`.
218-
=======
219-
## Scaling `direction` to be deprecated in favor of `mode`
220-
221-
```{attention}
222-
In the upcoming release of Plone 6.0, in `plone.scale` the `direction` argument will be deprecated in favor of `mode`.
223-
224-
`plone.scale` will continue to do scaling, but the values should be converted in your code as follows:
225-
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c
226211

227212
Other options are:
228213

229-
<<<<<<< HEAD
230214
* scale-crop-to-fit
231215
* down
232216
* scale-crop-to-fill
233217
* up
234218
* keep
235219
* thumbnail
236-
=======
237-
Until the final release of Plone 6.0, continue to use `plone.namedfile` with the `direction` argument and its values.
238-
```
239-
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c
240220

241221

242222
(classic-ui-images-permissions-label)=
243223

244224
## Permissions
245225

246226
The `ImageScaling` view explicitly checks the permissions of the current user.
247-
<<<<<<< HEAD
248227
To access image scales which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
249-
=======
250-
To access image scales, which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
251-
In `Products.EasyNewsletter` you can find an example of that.
252-
>>>>>>> 58481e400f28d62b1ad48bdf33572b2710c6f81c

0 commit comments

Comments
 (0)