plone.api 1.4

Door Roel Bruggink | Op 04-09-2015
The plone.api is an elegant and simple API, built for humans wishing to develop with Plone.

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:

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