Plone.api

Latest version: v2.2.0

Safety actively analyzes 628499 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 11

1.8.4

------------------

Bug fixes:

- Call ``processForm`` with ``{None: None}`` dict as values.
This prevents ``processForm`` using ``REQUEST.form`` and overwriting
values already set by ``invokeFactory``.
Fixes `issue 99 <https://github.com/plone/plone.api/issues/99>`_.
[david-batranu]

- Simplification/minor speedup:
Permissions checks now directly use AccessControl.
Technical its now exact the same as before.
Before a tool lookup was needed, calling a utility function, calling AccessControl.
[jensens]

1.8.3

------------------

Bug fixes:

- Improved code quality according to isort and flake8. [maurits]

- Fixed regular expression in test for Plone version. [maurits]

1.8.2

------------------

Bug fixes:

- Fix test in Zope4,
where ``Products.PlonePAS.tools.memberdata.MemberData`` is an adapter now.
It can't be proofed to be equal when fetched twice.
[jensens]

- Change api.group.get_groups to work with CMF master.
[jaroel]

- Added six to deal with Python 2 / 3 compatibility.
[rudaporto]

1.8.1

------------------

Bug fixes:

- Don't rename an object when the id already is the target id.
Fixes `issue 361 <https://github.com/plone/plone.api/issues/361>`_.
[jaroel]

- Change content.delete to allow both obj=None and objects=[] or objects=None.
Fixes `issue 383 <https://github.com/plone/plone.api/issues/383>`_.
[jaroel]

- Let ``zope.i18n`` do the language negotiation for our ``translate`` function.
Our ``get_current_translation`` does not always give the correct one, especially with combined languages:
``nl-be`` (Belgian/Flemish) should fall back to ``nl`` (Dutch).
The correct negotiated language can also differ per translation domain, which we do not account for.
``zope.i18n`` does that better.
Fixes `issue 379 <https://github.com/plone/plone.api/issues/379>`_.
[maurits]

- Fix use of Globals.DB which was removed in Zope4 (Fix https://github.com/plone/plone.api/issues/385)
[pbauer]

1.8

----------------

New features:

- Add method to check if ZODB is in read-only mode.
[loechel]

- added tox.ini and code convention definitions in setup.py and .editorconfig so that they could be enforced
[loechel]

Bug fixes:

- Fixes Tests and code convention son this repository.
[loechel]

1.7

----------------

New features:

- Add disable_roles_acquisition and enable_roles_acquisition to api.content
[MrTango]

Bug fixes:

- Simplify the ``plone.api.content.delete`` method.
[thet]

- content.copy with safe_id=False should raise it's own exception. Fixes 340
[jaroel]

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.