[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/Browser - ConfigurationStatusWidget.py:1.4

Marius Gedminas mgedmin@codeworks.lt
Thu, 12 Dec 2002 10:14:11 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/Browser
In directory cvs.zope.org:/tmp/cvs-serv21722

Modified Files:
	ConfigurationStatusWidget.py 
Log Message:
Add label tags in ConfigurationStatusWidget

=== Zope3/lib/python/Zope/App/OFS/Services/Browser/ConfigurationStatusWidget.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Services/Browser/ConfigurationStatusWidget.py:1.3	Sun Dec  1 05:30:32 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/Browser/ConfigurationStatusWidget.py	Thu Dec 12 10:14:10 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.
-# 
+#
 ##############################################################################
 """Configuration Browser Views
 
@@ -26,12 +26,12 @@
 class ConfigurationStatusWidget(BrowserWidget):
 
     def __call__(self):
-        checked = self._showData() or Unregistered        
+        checked = self._showData() or Unregistered
         result = [
-            ('<input type="radio" name="%s" value="%s"%s>&nbsp;%s'
+            ('<label><input type="radio" name="%s" value="%s"%s>&nbsp;%s</label>'
              % (self.name, v, (v == checked and ' checked' or ''), v)
              )
             for v in (Unregistered, Registered, Active)
             ]
         return ' '.join(result)
-    
+