[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py whitespace normalization

Fred L. Drake, Jr. fdrake at gmail.com
Wed Jul 28 17:25:45 EDT 2004


Log message for revision 26824:
  whitespace normalization


Changed:
  U   Zope3/trunk/src/zope/app/form/browser/itemswidgets.py


-=-
Modified: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2004-07-28 19:59:49 UTC (rev 26823)
+++ Zope3/trunk/src/zope/app/form/browser/itemswidgets.py	2004-07-28 21:25:45 UTC (rev 26824)
@@ -40,7 +40,7 @@
 def ChoiceInputWidget(field, request):
     return zapi.getMultiView((field, field.vocabulary), request, IInputWidget)
 
-# for collections, we want to make the widget a view of the field and the 
+# for collections, we want to make the widget a view of the field and the
 # value_type.  If the value_type is None we may fall over.  We may
 # not be able to do any better than that.
 
@@ -50,7 +50,7 @@
 def CollectionInputWidget(field, request):
     return zapi.getMultiView((field, field.value_type), request, IInputWidget)
 
-# for collections of choices, we want to make the widget a view of the field, 
+# for collections of choices, we want to make the widget a view of the field,
 # the value type, and the vocabulary.
 
 def ChoiceCollectionDisplayWidget(field, value_type, request):
@@ -100,7 +100,7 @@
     def textForValue(self, term):
         """Extract a string from the `term`.
 
-        The `term` must be a vocabulary tokenized term. 
+        The `term` must be a vocabulary tokenized term.
 
         This can be overridden to support more complex `term` objects. The token
         is returned here since it's the only thing known to be a string, or
@@ -113,7 +113,7 @@
         """Convert term tokens to the terms themselves.
 
         Tokens are used in the HTML form to represent terms. This method takes
-        the form tokens and converts them back to terms. 
+        the form tokens and converts them back to terms.
         """
         values = []
         for token in tokens:
@@ -188,7 +188,7 @@
 class SingleDataHelper(object):
     """Mix-in helper class for getting the term from the HTML form.
 
-    This is used when we expect a single input, i.e. the Choice field. 
+    This is used when we expect a single input, i.e. the Choice field.
     """
 
     def _toFieldValue(self, input):
@@ -303,7 +303,7 @@
     as value_type.
     """
     implements(IInputWidget)
-    
+
     size = 5
     tag = 'select'
     firstItem = False
@@ -483,7 +483,7 @@
                              id=id,
                              cssClass=cssClass,
                              type='radio')
-        return self._joinButtonToMessageTemplate %(elem, text)
+        return self._joinButtonToMessageTemplate % (elem, text)
 
     def renderSelectedItem(self, index, text, value, name, cssClass):
         """Render a selected item of the list."""
@@ -496,7 +496,7 @@
                              checked=None,
                              type='radio')
         return self._joinButtonToMessageTemplate %(elem, text)
-    
+
     def renderItems(self, value):
         # check if we want to select first item, the previously selected item
         # or the "no value" item.
@@ -562,7 +562,7 @@
                              size=self.size,
                              contents="\n".join(rendered_items),
                              extra=self.extra)
-    
+
     def hidden(self):
         items = []
         for item in self._getFormValue():
@@ -575,8 +575,8 @@
                               cssClass=self.cssClass,
                               extra=self.extra))
         return '\n'.join(items)
-         
 
+
 class MultiSelectWidget(ItemsMultiEditWidgetBase):
     """Provide a selection list for the list to be selected."""
 



More information about the Zope3-Checkins mailing list