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

Steve Alexander steve@cat-box.net
Thu, 20 Feb 2003 09:56:43 -0500


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

Modified Files:
	widget.py 
Log Message:
whitespace and formatting cleanups


=== Zope3/src/zope/app/browser/form/widget.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.14	Thu Feb 20 09:45:43 2003
+++ Zope3/src/zope/app/browser/form/widget.py	Thu Feb 20 09:56:42 2003
@@ -194,8 +194,9 @@
 
 class TextWidget(PossiblyEmptyMeansMissing, BrowserWidget):
     """Text widget."""
-    propertyNames = BrowserWidget.propertyNames + \
+    propertyNames = (BrowserWidget.propertyNames +
                      ['displayWidth', 'displayMaxWidth', 'extra', 'default']
+                     )
     default = ''
     displayWidth = 20
     displayMaxWidth = ""
@@ -406,7 +407,7 @@
             seek = value.seek
             read = value.read
         except AttributeError, e:
-            raise ConversionError('Value is not a file object', e)            
+            raise ConversionError('Value is not a file object', e)
         else:
             seek(0)
             data = read()
@@ -434,8 +435,8 @@
         items = self.context.allowed_values
 
         # check if we want to select first item
-        if not value and getattr(self.context, 'firstItem', None) and \
-               len(items) > 0:
+        if (not value and getattr(self.context, 'firstItem', None)
+            and len(items) > 0):
             try:
                 text, value = items[0]
             except ValueError:
@@ -475,8 +476,9 @@
 class ListWidget(SingleItemsWidget):
     """List widget."""
     __implements__ = SingleItemsWidget.__implements__
-    propertyNames = SingleItemsWidget.propertyNames +\
+    propertyNames = (SingleItemsWidget.propertyNames +
                      ['firstItem', 'items', 'size', 'extra']
+                     )
     size = 5
 
     def __call__(self):
@@ -588,8 +590,7 @@
 
 class MultiListWidget(MultiItemsWidget):
     """List widget with multiple select."""
-    propertyNames = MultiItemsWidget.propertyNames +\
-                     ['size', 'extra']
+    propertyNames = MultiItemsWidget.propertyNames + ['size', 'extra']
     size = 5
 
     def __call__(self):
@@ -613,8 +614,7 @@
 
 class MultiCheckBoxWidget(MultiItemsWidget):
     """Multiple checkbox widget."""
-    propertyNames = MultiItemsWidget.propertyNames +\
-                     ['orientation']
+    propertyNames = MultiItemsWidget.propertyNames + ['orientation']
     orientation = "vertical"
 
     def __call__(self):