[Zope3-checkins] CVS: Zope3/src/zope/schema/tests - test_vocabulary.py:1.1.2.4
Fred L. Drake, Jr.
fred@zope.com
Fri, 16 May 2003 11:58:47 -0400
Update of /cvs-repository/Zope3/src/zope/schema/tests
In directory cvs.zope.org:/tmp/cvs-serv32608/tests
Modified Files:
Tag: schema-vocabulary-branch
test_vocabulary.py
Log Message:
Change the way queryable vocabularies are handled; queryability will no
longer be indicated by specialized interfaces on the vocab, but by the
getQuery() method returning a non-None value. The returned object can be
used with the component architecture to get useful adapters and view-helpers.
=== Zope3/src/zope/schema/tests/test_vocabulary.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/schema/tests/test_vocabulary.py:1.1.2.3 Wed May 7 16:50:21 2003
+++ Zope3/src/zope/schema/tests/test_vocabulary.py Fri May 16 11:58:46 2003
@@ -66,6 +66,9 @@
def __len__(self):
return 10
+ def getQuery(self):
+ return None
+
def getTerm(self, value):
if value in self:
t = SampleTerm()