[CMF-checkins] CVS: CMF/CMFDefault - MetadataTool.py:1.11

Martijn Pieters mj@zope.com
Tue, 5 Mar 2002 10:21:26 -0500


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv15559/CMFDefault

Modified Files:
	MetadataTool.py 
Log Message:




=== CMF/CMFDefault/MetadataTool.py 1.10 => 1.11 ===
                         'Metadata element %s is required.' % element
 
+            import pdb;pdb.set_trace()
             if policy.enforceVocabulary():
                 values = policy.isMultiValued() and value or [ value ]
                 for value in values:
-                    if not value in policy.allowedValues():
+                    if not value in policy.allowedVocabulary():
                         raise MetadataError, \
                         'Value %s is not in allowed vocabulary for' \
                         'metadata element %s.' % ( value, element )