diff -r c7a6f6cd50af -r 1dd63411c085 src/pyams_thesaurus/doctests/README.txt --- a/src/pyams_thesaurus/doctests/README.txt Mon Aug 31 12:48:39 2020 +0200 +++ b/src/pyams_thesaurus/doctests/README.txt Wed Sep 02 17:34:54 2020 +0200 @@ -56,9 +56,12 @@ >>> from pyams_utils.encoding import EncodingsVocabulary >>> registry.register('PyAMS encodings', EncodingsVocabulary) + >>> from pyams_utils.factory import register_factory >>> from pyams_thesaurus.interfaces.thesaurus import IThesaurus, IThesaurusExtracts - >>> from pyams_thesaurus.thesaurus import ThesaurusExtractsFactory - >>> zope.component.provideAdapter(ThesaurusExtractsFactory, adapts=(IThesaurus,), provides=IThesaurusExtracts) + >>> from pyams_thesaurus.thesaurus import ThesaurusExtractsContainer, thesaurus_extracts_factory + >>> register_factory(IThesaurusExtracts, ThesaurusExtractsContainer) + >>> zope.component.provideAdapter(thesaurus_extracts_factory, adapts=(IThesaurus,), + ... provides=IThesaurusExtracts) Creating a thesaurus from a SKOS RDF file