[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Widgets/XUL - IXULWidget.py:1.1.4.2 TextWidget.py:1.1.4.2 XULWidget.py:1.1.4.2

Jeremy Hylton jeremy@zope.com
Tue, 4 Jun 2002 12:27:50 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Widgets/XUL
In directory cvs.zope.org:/tmp/cvs-serv4032/Widgets/XUL

Modified Files:
      Tag: Zope-3x-branch
	IXULWidget.py TextWidget.py XULWidget.py 
Log Message:
Fix line endings


=== Zope3/lib/python/Zope/App/Formulator/Widgets/XUL/IXULWidget.py 1.1.4.1 => 1.1.4.2 ===
 # 
 ##############################################################################
-"""
-
-$Id$
-"""
-
-from Interface import Interface
-
-
-class IXULWidget(Interface):
-    """A field widget contains all the properties that are required
-       to represent a field. Properties include css_sheet, 
-       default value and so on.
-
-    """
-
-
-    def render(field, key, value, REQUEST):
-        """Renders this widget as HTML using property values in field.
-        """
-
-        
-    def render_hidden(field, key, value, REQUEST):
-        """Renders this widget as a hidden field.
-        """
-        
+"""
+
+$Id$
+"""
+
+from Interface import Interface
+
+
+class IXULWidget(Interface):
+    """A field widget contains all the properties that are required
+       to represent a field. Properties include css_sheet, 
+       default value and so on.
+
+    """
+
+
+    def render(field, key, value, REQUEST):
+        """Renders this widget as HTML using property values in field.
+        """
+
+        
+    def render_hidden(field, key, value, REQUEST):
+        """Renders this widget as a hidden field.
+        """
+        


=== Zope3/lib/python/Zope/App/Formulator/Widgets/XUL/TextWidget.py 1.1.4.1 => 1.1.4.2 ===
 # 
 ##############################################################################
-"""
-
-$Id$
-"""
-
-from Zope.App.Formulator.Widgets.XUL.XULWidget import XULWidget
-from Zope.App.Formulator.Widgets.XUL.XULWidget import renderElement
-
-
-class TextWidget(XULWidget):
-    """Text widget
-    """
-
-    __implements__ = XULWidget.__implements__
-
-    propertyNames = XULWidget.propertyNames + \
-                     ['displayMaxWidth', 'extra', 'default']
-
-    tag = 'textbox'
-    default = ''
-    displayMaxWidth = ''
-    extra = ''
-
-    
-    def render(self, REQUEST=None):
-        """Renders this widget as HTML using property values in field.
-        """
-        displayMaxWidth = self.getValue('displayMaxWidth') or 0
-        if displayMaxWidth > 0:
-            return renderElement(self.getValue('tag'),
-                                 id = self.getContext().id,
-                                 value = self._getValueToInsert(REQUEST),
-                                 cssClass = self.getValue('cssClass'),
-                                 maxlength = displayMaxWidth,
-                                 extra = self.getValue('extra'))
-        else:
-            return renderElement(self.getValue('tag'),
-                                 id = self.getContext().id,
-                                 value = self._getValueToInsert(REQUEST),
-                                 cssClass = self.getValue('cssClass'),
-                                 extra = self.getValue('extra'))
+"""
+
+$Id$
+"""
+
+from Zope.App.Formulator.Widgets.XUL.XULWidget import XULWidget
+from Zope.App.Formulator.Widgets.XUL.XULWidget import renderElement
+
+
+class TextWidget(XULWidget):
+    """Text widget
+    """
+
+    __implements__ = XULWidget.__implements__
+
+    propertyNames = XULWidget.propertyNames + \
+                     ['displayMaxWidth', 'extra', 'default']
+
+    tag = 'textbox'
+    default = ''
+    displayMaxWidth = ''
+    extra = ''
+
+    
+    def render(self, REQUEST=None):
+        """Renders this widget as HTML using property values in field.
+        """
+        displayMaxWidth = self.getValue('displayMaxWidth') or 0
+        if displayMaxWidth > 0:
+            return renderElement(self.getValue('tag'),
+                                 id = self.getContext().id,
+                                 value = self._getValueToInsert(REQUEST),
+                                 cssClass = self.getValue('cssClass'),
+                                 maxlength = displayMaxWidth,
+                                 extra = self.getValue('extra'))
+        else:
+            return renderElement(self.getValue('tag'),
+                                 id = self.getContext().id,
+                                 value = self._getValueToInsert(REQUEST),
+                                 cssClass = self.getValue('cssClass'),
+                                 extra = self.getValue('extra'))


=== Zope3/lib/python/Zope/App/Formulator/Widgets/XUL/XULWidget.py 1.1.4.1 => 1.1.4.2 ===
+!##############################################################################
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.