[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security - permissionwidget.py:1.1.2.4

Tim Peters tim.one@comcast.net
Tue, 24 Dec 2002 21:21:46 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	permissionwidget.py 
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py.  The
files are fixed-points of that script now.  Fixed a few cases where
code relied on significant trailing whitespace (ouch).


=== Zope3/src/zope/app/browser/security/permissionwidget.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/browser/security/permissionwidget.py:1.1.2.3	Tue Dec 24 13:41:16 2002
+++ Zope3/src/zope/app/browser/security/permissionwidget.py	Tue Dec 24 21:20:15 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Widget for selecting permissions.
 
@@ -33,7 +33,7 @@
             return None
         return permission.getId()
 
-class SinglePermissionWidget(BaseWidget, widget.BrowserWidget):    
+class SinglePermissionWidget(BaseWidget, widget.BrowserWidget):
 
     def __call__(self):
         search_name = self.name + ".search"
@@ -51,7 +51,7 @@
 
         select_name = self.name
         selected = self._showData()
-        
+
         options = ['<option value=\"\">---select permission---</option>']
         for permission in permissions:
             options.append('<option value="%s"%s>%s</option>'
@@ -59,17 +59,15 @@
                               permission == selected and ' selected' or '',
                               permission)
                            )
-            
+
 
         search_field = '<input type="text" name="%s" value=\"%s\">' % (
             search_name, search_string)
         select_field = '<select name="%s">%s</select>'  % (
             select_name, ''.join(options))
-        
+
         HTML = search_field + select_field
         return HTML
 
 class DisplayWidget(BaseWidget, widget.DisplayWidget):
     pass
-
-