[Checkins] [zopefoundation/zope.schema] 4a8b02: Allow `missing_value` without setting `min` and `m...

GitHub noreply at github.com
Mon Aug 13 16:56:14 CEST 2018


  Branch: refs/heads/issue9
  Home:   https://github.com/zopefoundation/zope.schema
  Commit: 4a8b0269eaf2b39724aa19ac497fa4da9db6df36
      https://github.com/zopefoundation/zope.schema/commit/4a8b0269eaf2b39724aa19ac497fa4da9db6df36
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2018-08-13 (Mon, 13 Aug 2018)

  Changed paths:
    M CHANGES.rst
    M src/zope/schema/_bootstrapfields.py
    M src/zope/schema/tests/test__bootstrapfields.py
    M src/zope/schema/tests/test__field.py

  Log Message:
  -----------
  Allow `missing_value` without setting `min` and `max`

Fixes #9

Note that you must still specify a `default` in that case. I'm not
sure that makes sense or not.

This impacts Int, Float, Decimal, DateTime, Timedelta, Date, and
Time---all the subclasses of Orderable. They all have a test case.

Also fix ValidatedProperty and DefaultProperty to do the right thing
when accessesd on the class and not the instance (which is to return
themself; previously they would raise AttributeError).



      **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