Metadata-Version: 1.1
Name: zope.vocabularyregistry
Version: 1.0.0
Summary: Utility-based Vocabulary Registry
Home-page: http://pypi.python.org/pypi/zope.apidoc
Author: Zope Corporation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Description: This Zope 3 package provides a ``zope.schema`` vocabulary registry that uses
        utilities to look up vocabularies.
        
        
        Component-based Vocabulary Registry
        ===================================
        
        This package provides a vocabulary registry for zope.schema,
        based on the component architecture.
        
        It replaces the zope.schema's simple vocabulary registry
        when ``zope.app.schema`` package is imported, so it's done
        automatically. All we need is provide vocabulary factory
        utilities:
        
          >>> from zope.component import provideUtility
          >>> from zope.schema.interfaces import IVocabularyFactory
          >>> from zope.schema.vocabulary import SimpleTerm
          >>> from zope.schema.vocabulary import SimpleVocabulary
        
          >>> def SomeVocabulary(context=None):
          ...     terms = [SimpleTerm(1), SimpleTerm(2)]
          ...     return SimpleVocabulary(terms)
        
          >>> provideUtility(SomeVocabulary, IVocabularyFactory,
          ...                name='SomeVocabulary')
        
        Now we can get the vocabulary using standard zope.schema
        way:
        
          >>> from zope.schema.vocabulary import getVocabularyRegistry
          >>> vr = getVocabularyRegistry()
          >>> voc = vr.get(None, 'SomeVocabulary')
          >>> [term.value for term in voc]
          [1, 2]
        
        
        =======
        CHANGES
        =======
        
        1.0.0 (2013-03-01)
        ------------------
        
        - Added support for Python 3.3.
        
        - Replaced deprecated ``zope.interface.implements`` usage with equivalent
          ``zope.interface.implementer`` decorator.
        
        - Dropped support for Python 2.4 and 2.5.
        
        - Initial release independent of ``zope.app.schema``.
        
Keywords: zope3 schema vocabulary registry
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Framework :: Zope3
