src/pyams_thesaurus/doctests/README.txt
changeset 123 1dd63411c085
parent 0 47700a43ef3f
equal deleted inserted replaced
122:c7a6f6cd50af 123:1dd63411c085
    54     >>> registry.register('PyAMS thesaurus extensions', ThesaurusTermExtensionsVocabulary)
    54     >>> registry.register('PyAMS thesaurus extensions', ThesaurusTermExtensionsVocabulary)
    55 
    55 
    56     >>> from pyams_utils.encoding import EncodingsVocabulary
    56     >>> from pyams_utils.encoding import EncodingsVocabulary
    57     >>> registry.register('PyAMS encodings', EncodingsVocabulary)
    57     >>> registry.register('PyAMS encodings', EncodingsVocabulary)
    58 
    58 
       
    59     >>> from pyams_utils.factory import register_factory
    59     >>> from pyams_thesaurus.interfaces.thesaurus import IThesaurus, IThesaurusExtracts
    60     >>> from pyams_thesaurus.interfaces.thesaurus import IThesaurus, IThesaurusExtracts
    60     >>> from pyams_thesaurus.thesaurus import ThesaurusExtractsFactory
    61     >>> from pyams_thesaurus.thesaurus import ThesaurusExtractsContainer, thesaurus_extracts_factory
    61     >>> zope.component.provideAdapter(ThesaurusExtractsFactory, adapts=(IThesaurus,), provides=IThesaurusExtracts)
    62     >>> register_factory(IThesaurusExtracts, ThesaurusExtractsContainer)
       
    63     >>> zope.component.provideAdapter(thesaurus_extracts_factory, adapts=(IThesaurus,),
       
    64     ...                               provides=IThesaurusExtracts)
    62 
    65 
    63 
    66 
    64 Creating a thesaurus from a SKOS RDF file
    67 Creating a thesaurus from a SKOS RDF file
    65 -----------------------------------------
    68 -----------------------------------------
    66 
    69