[Zope3-checkins] CVS: Zope3/src/zope/app/schema - vocabulary.py:1.3

Steve Alexander steve@cat-box.net
Wed, 4 Jun 2003 06:47:08 -0400


Update of /cvs-repository/Zope3/src/zope/app/schema
In directory cvs.zope.org:/tmp/cvs-serv10932/src/zope/app/schema

Modified Files:
	vocabulary.py 
Log Message:
new style implements().
This caused other changes to schemagen.


=== Zope3/src/zope/app/schema/vocabulary.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/schema/vocabulary.py:1.2	Tue May 20 12:10:29 2003
+++ Zope3/src/zope/app/schema/vocabulary.py	Wed Jun  4 06:46:37 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):