[Zope3-checkins] CVS: Zope3/lib/python/Zope/Schema - IField.py:1.7

Jeremy Hylton jeremy@zope.com
Thu, 10 Oct 2002 17:21:34 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Schema
In directory cvs.zope.org:/tmp/cvs-serv21038/lib/python/Zope/Schema

Modified Files:
	IField.py 
Log Message:
Use booleans.




=== Zope3/lib/python/Zope/Schema/IField.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/Schema/IField.py:1.6	Fri Oct  4 14:24:55 2002
+++ Zope3/lib/python/Zope/Schema/IField.py	Thu Oct 10 17:21:34 2002
@@ -176,8 +176,11 @@
 def _fields(values):
     for value in values:
         if not IField.isImplementedBy(value):
-            return 0
-    return 1
+            import pdb
+            pdb.set_trace()
+            IField.isImplementedBy(value)
+            return False
+    return True
 
 class ISequence(ISized, IIteratable):
     u"""Describes fields that can hold a sequence values