[Checkins] [zopefoundation/zope.schema] 3c49ba: Make Object a bootstrapfield and share the logic b...
GitHub
noreply at github.com
Wed Sep 5 14:00:53 CEST 2018
Branch: refs/heads/issue13
Home: https://github.com/zopefoundation/zope.schema
Commit: 3c49bac9362c1a8e09d0fb30b2a388382d05aa86
https://github.com/zopefoundation/zope.schema/commit/3c49bac9362c1a8e09d0fb30b2a388382d05aa86
Author: Jason Madden <jamadden at gmail.com>
Date: 2018-09-05 (Wed, 05 Sep 2018)
Changed paths:
M CHANGES.rst
M docs/api.rst
M docs/validation.rst
M src/zope/schema/_bootstrapfields.py
M src/zope/schema/_bootstrapinterfaces.py
M src/zope/schema/_field.py
M src/zope/schema/_schema.py
M src/zope/schema/interfaces.py
M src/zope/schema/tests/test__field.py
Log Message:
-----------
Make Object a bootstrapfield and share the logic between Object validation and the public functions get[Schema]ValidationErrors.
Fixes #57
This makes Object bind all fields (not just choices) before
validation. This fixes #17 in a backwards compatible way.
Binding all attributes, not just Choices, reduced the dependencies of
Object and facilitated making it a bootstrap field. Making it a
bootstrap field in turn let us use it in more places in interfaces.py,
which fixes #13.
Switch from just repeating attribute names in interfaces.py to a real
__all__ attribute that linters can warn about.
Change ..autoclass:: in api.rst to ..autointerface:: so we get the
actual member documentation and not lots of warnings about missing
__mro__. (This is unrelated, I was just tired of the warnings.)
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the checkins
mailing list