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

Gary Poster gary@zope.com
Fri, 30 May 2003 11:00:37 -0400


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

Modified Files:
	vocabularywidget.py 
Log Message:
shorten and correct condition.


=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.18	Fri May 30 10:29:48 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py	Fri May 30 11:00:36 2003
@@ -585,7 +585,7 @@
                 # see if there's anything else:
                 it.next()
         except StopIteration:
-            if len(QS) == 0:
+            if not items:
                 return "<div class='results'>%s</div>" % (
                     self.translate(self._msg_no_results))
             have_more = False