[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Validators - MultiSelectionValidator.py:1.1.4.3

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 15:34:46 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Validators
In directory cvs.zope.org:/tmp/cvs-serv5490/lib/python/Zope/App/Formulator/Validators

Modified Files:
      Tag: Zope-3x-branch
	MultiSelectionValidator.py 
Log Message:
Implemented 

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification

Along the way:

- Converted most uses of has_key to use in.

- Fixed a bug in Interface names and namesAndDescriptions methods 
  that caused base class attributes to be missed.



=== Zope3/lib/python/Zope/App/Formulator/Validators/MultiSelectionValidator.py 1.1.4.2 => 1.1.4.3 ===
             except ValueError:
                 int_value = None
-            if int_value is not None and value_dict.has_key(int_value):
+            if int_value is not None and (int_value in value_dict):
                 result.append(int_value)
                 continue
-            if value_dict.has_key(value):
+            if value in value_dict:
                 result.append(value)
                 continue
             self.raise_error('unknownSelection', field)