[Checkins] [zopefoundation/zope.schema] 5c65d7: Make SimpleVocabulary.fromItems() accept triples t...
GitHub
noreply at github.com
Sun Sep 2 05:07:30 CEST 2018
Branch: refs/heads/master
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.
Commit: e163d536405e88623b115c7a9761e20ecf14159c
https://github.com/zopefoundation/zope.schema/commit/e163d536405e88623b115c7a9761e20ecf14159c
Author: Jason Madden <jason+github at nextthought.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:
-----------
Merge pull request #52 from zopefoundation/issue18
Make SimpleVocabulary.fromItems() accept triples to assign titles
Compare: https://github.com/zopefoundation/zope.schema/compare/665e2e73f639...e163d536405e
**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