Zope.schema

Latest version: v7.0.1

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

Scan your dependencies

Page 7 of 10

3.8.0

==================

- Implement a ``defaultFactory`` attribute for all fields. It is a callable
that can be used to compute default values. The simplest case is::

Date(defaultFactory=datetime.date.today)

If the factory needs a context to compute a sensible default value, then it
must provide ``IContextAwareDefaultFactory``, which can be used as follows::

provider(IContextAwareDefaultFactory)
def today(context):
return context.today()

Date(defaultFactory=today)

3.7.1

==================

- Rename the validation token, used in the validation of schema with Object
Field to avoid infinite recursion:
``__schema_being_validated`` became ``_v_schema_being_validated``,
a volatile attribute, to avoid persistency and therefore,
read/write conflicts.

- Don't allow "[\]^`" in DottedName.
https://bugs.launchpad.net/zope.schema/+bug/191236

3.7.0

==================

- Improve error messages when term tokens or values are duplicates.

- Fix the buildout so the tests run.

3.6.4

==================

- fix validation of schema with Object Field that specify Interface schema.

3.6.3

==================

- Prefer the standard libraries doctest module to the one from zope.testing.

3.6.2

==================

- Avoid maximum recursion when validating Object field that points to cycles

- Make the dependency on ``zope.i18nmessageid`` optional.

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.