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

Fred L. Drake, Jr. fred@zope.com
Tue, 15 Jul 2003 12:54:20 -0400


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

Modified Files:
	states.py 
Log Message:
Add missing methods required by interface.

=== Zope3/src/zope/schema/tests/states.py 1.3 => 1.4 ===
--- Zope3/src/zope/schema/tests/states.py:1.3	Wed Jun  4 05:09:46 2003
+++ Zope3/src/zope/schema/tests/states.py	Tue Jul 15 12:54:15 2003
@@ -109,14 +109,17 @@
     def __contains__(self, value):
         return value in _states
 
-    def getTerm(self, value):
-        return _states[value]
-
     def __iter__(self):
         return _states.itervalues()
 
     def __len__(self):
         return len(_states)
+
+    def getQuery(self):
+        return None
+
+    def getTerm(self, value):
+        return _states[value]
 
 
 class StateSelectionField(vocabulary.VocabularyField):