[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/browser - form.py:1.1.2.4
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:33 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/browser
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/interfaces/browser
Modified Files:
Tag: NameGeddon-branch
form.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/interfaces/browser/form.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/interfaces/browser/form.py:1.1.2.3 Tue Dec 24 10:05:35 2002
+++ Zope3/src/zope/app/interfaces/browser/form.py Tue Dec 24 21:20:32 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.
-#
+#
##############################################################################
"""
$Id$
@@ -28,7 +28,7 @@
schema = Attribute(
"""The schema this form should be constructed from.""")
-
+
custom_widgets = Attribute(
"""A dictionary that holds custom widgets for various fields.""")
@@ -56,7 +56,7 @@
def renderField(field):
"""Render a field using the widgets."""
-
+
def action():
"""Execute the form. By default it tries to save the values back
into the content object."""
@@ -82,7 +82,7 @@
class IBrowserWidget(IWidget):
"""A field widget contains all the properties that are required
- to represent a field. Properties include css_sheet,
+ to represent a field. Properties include css_sheet,
default value and so on.
"""
@@ -112,20 +112,20 @@
def render(value):
"""Renders this widget as HTML using property values in field.
- The value if given will be used as the default value for the widget.
+ The value if given will be used as the default value for the widget.
"""
-
+
def renderHidden(value):
"""Renders this widget as a hidden field.
"""
-
+
def label():
"""Render a label tag"""
def row():
"""Render the widget as a table row with the label and input widget
"""
-
+
@@ -134,26 +134,26 @@
When a form is applied, the changes in the form need to
be applied to individual views, which update objects as
- necessary.
+ necessary.
"""
def __call__():
- """Render the view as a part of a larger form.
+ """Render the view as a part of a larger form.
- Form input elements should be included, prefixed with the
- prefix given to setPrefix.
+ Form input elements should be included, prefixed with the
+ prefix given to setPrefix.
- 'form' and 'submit' elements should not be included. They
- will be provided for the larger form.
- """
+ 'form' and 'submit' elements should not be included. They
+ will be provided for the larger form.
+ """
def setPrefix(prefix):
- """Set the prefix used for names of input elements
+ """Set the prefix used for names of input elements
- Element names should begin with the given prefix,
- followed by a dot.
- """
+ Element names should begin with the given prefix,
+ followed by a dot.
+ """
def update():
- """Update the form with data from the request.
- """
+ """Update the form with data from the request.
+ """