[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.47.2.2

Sidnei da Silva sidnei at x3ng.com.br
Wed Aug 13 11:01:01 EDT 2003


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

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	widget.py 
Log Message:
I hope an empty list means that allowed_values is not to be used, thus render a field instead of a select. A few whitespace cleaning.

=== Zope3/src/zope/app/browser/form/widget.py 1.47.2.1 => 1.47.2.2 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.47.2.1	Tue Aug 12 13:38:51 2003
+++ Zope3/src/zope/app/browser/form/widget.py	Wed Aug 13 10:00:18 2003
@@ -462,7 +462,7 @@
         return '\n\t'.join(result)
 
     def __call__(self):
-        if self.__values is not None:
+        if self.__values:
             return self._select()
 
         displayMaxWidth = self.getValue('displayMaxWidth') or 0




More information about the Zope3-Checkins mailing list