Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Four Digits: plone.api 1.4

$
0
0

What has changed in version 1.4?

Link integrity

plone.api.content.delete now support the parameter check_linkintegrity. This raises an exception if deleting the object(s) would result in broken links.

kwargs for plone.api.content.transition

plone.api.content.transition now accepts kwargs that can be supplied to the workflow transition.

from plone import api
portal = api.portal.get()
api.content.transition(obj=portal['about'], transition='reject', comment='You had a typo on your page.')

Tuple support in content.find for object_provides

The object_provides parameter allows a tuple of interfaces, as well as a list.

All commits: https://github.com/plone/plone.api/compare/1.3.3...1.4
Changelog: https://github.com/plone/plone.api/blob/1.4/docs/CHANGES.rst

A big thank you to ale-rt, neilferreira and pbauer!


Viewing all articles
Browse latest Browse all 3535

Trending Articles