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

Fred L. Drake, Jr. fred@zope.com
Wed, 28 May 2003 16:36:22 -0400


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

Modified Files:
	vocabulary.py 
Log Message:
VocabularyField requires that vocabulary be specified.


=== Zope3/src/zope/schema/vocabulary.py 1.3 => 1.4 ===
--- Zope3/src/zope/schema/vocabulary.py:1.3	Wed May 28 10:32:26 2003
+++ Zope3/src/zope/schema/vocabulary.py	Wed May 28 16:36:22 2003
@@ -39,6 +39,7 @@
             self.vocabulary = None
             self.vocabularyName = vocabulary
         else:
+            assert vocabulary is not None
             self.vocabulary = vocabulary
             self.vocabularyName = None
         # call the base initializer