• Roel Bruggink

plone.api 1.4

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: 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!

We love code


Wij maken gebruik van cookies. Meer hierover lees je in onze Privacy- cookieverklaring.