[Zope3-checkins] CVS: Zope3/src/zope/app/schema - vocabulary.py:1.2.2.1
Grégoire Weber
zope@i-con.ch
Sun, 22 Jun 2003 10:24:25 -0400
Update of /cvs-repository/Zope3/src/zope/app/schema
In directory cvs.zope.org:/tmp/cvs-serv24874/src/zope/app/schema
Modified Files:
Tag: cw-mail-branch
vocabulary.py
Log Message:
Synced up with HEAD
=== Zope3/src/zope/app/schema/vocabulary.py 1.2 => 1.2.2.1 ===
--- Zope3/src/zope/app/schema/vocabulary.py:1.2 Tue May 20 12:10:29 2003
+++ Zope3/src/zope/app/schema/vocabulary.py Sun Jun 22 10:23:22 2003
@@ -14,12 +14,14 @@
"""Implementation of ZCML action to register vocabulary factories."""
+from zope.interface import implements
from zope.component import getService
from zope.configuration.action import Action
from zope.schema import vocabulary
from zope.schema.interfaces import IVocabularyRegistry
from zope.testing import cleanup
+__metaclass__ = type
def register(_context, name, factory, **kw):
factory = _context.resolve(factory.strip())
@@ -43,10 +45,10 @@
return self.factory(object, **self.kwargs)
-class ZopeVocabularyRegistry(object):
+class ZopeVocabularyRegistry:
"""IVocabularyRegistry that supports local vocabulary services."""
- __implements__ = IVocabularyRegistry
+ implements(IVocabularyRegistry)
__slots__ = ()
def get(self, context, name):