[Checkins] [zopefoundation/zope.schema] 5c65d7: Make SimpleVocabulary.fromItems() accept triples t...

GitHub noreply at github.com
Sat Sep 1 23:01:20 CEST 2018


  Branch: refs/heads/issue18
  Home:   https://github.com/zopefoundation/zope.schema
  Commit: 5c65d7b877e2faa246d446dba1f8c6c56201a1d0
      https://github.com/zopefoundation/zope.schema/commit/5c65d7b877e2faa246d446dba1f8c6c56201a1d0
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2018-09-01 (Sat, 01 Sep 2018)

  Changed paths:
    M CHANGES.rst
    M src/zope/schema/tests/test__field.py
    M src/zope/schema/tests/test_vocabulary.py
    M src/zope/schema/vocabulary.py

  Log Message:
  -----------
  Make SimpleVocabulary.fromItems() accept triples to assign titles

Fixes #18

Some other vocabulary fixes while I was in there:

- Make TreeVocubalary.fromDict only actually assign titles when a
  title is given. This makes it consistent with
  SimpleVocubalary.fromItems().

- Give equality and hash methods to SimpleTerm and SimpleVocubalary.
  This was a confusing stumbling block in the implementation of #51.



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