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

GitHub noreply at github.com
Mon Aug 13 17:24:30 CEST 2018


  Branch: refs/heads/master
  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).


  Commit: ec25d71f984c16fc521c18f0ee72d219a18c1285
      https://github.com/zopefoundation/zope.schema/commit/ec25d71f984c16fc521c18f0ee72d219a18c1285
  Author: Jason Madden <jason+github at nextthought.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:
  -----------
  Merge pull request #41 from zopefoundation/issue9

Allow `missing_value` without setting `min` and `max`


Compare: https://github.com/zopefoundation/zope.schema/compare/ca3e6f89371b...ec25d71f984c
      **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