[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.10

Fred L. Drake, Jr. fred@zope.com
Thu, 29 May 2003 10:35:07 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv10119

Modified Files:
	vocabularywidget.py 
Log Message:
Don't automatically make everything iterable have dummy "query"
support; this just doesn't make sense.  Vocabularies which want this
can define getQuery() and return an instance of the stock class
IterableVocabularyQuery.


=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.9	Thu May 29 10:33:02 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py	Thu May 29 10:35:06 2003
@@ -67,8 +67,6 @@
         queryname = "widget-query-helper"
     view = _get_vocabulary_widget(field, request, viewname)
     query = field.vocabulary.getQuery()
-    if query is None and IIterableVocabulary.isImplementedBy(field.vocabulary):
-        query = IterableVocabularyQuery(field.vocabulary)
     if query is not None:
         queryview = getView(query, queryname, request)
         view.setQuery(query, queryview)