[Zope3-checkins] CVS: Zope3/src/zope/app/form - utility.py:1.11
Steve Alexander
steve@cat-box.net
Tue, 28 Jan 2003 06:26:43 -0500
Update of /cvs-repository/Zope3/src/zope/app/form
In directory cvs.zope.org:/tmp/cvs-serv12966/src/zope/app/form
Modified Files:
utility.py
Log Message:
whitespace and small reformatting
=== Zope3/src/zope/app/form/utility.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/form/utility.py:1.10 Mon Jan 27 23:51:17 2003
+++ Zope3/src/zope/app/form/utility.py Tue Jan 28 06:26:41 2003
@@ -43,8 +43,10 @@
from zope.component.interfaces import IViewFactory
def _fieldlist(names, schema):
- if not names: fields = getFieldsInOrder(schema)
- else: fields = [ (name, schema[name]) for name in names ]
+ if not names:
+ fields = getFieldsInOrder(schema)
+ else:
+ fields = [ (name, schema[name]) for name in names ]
return fields
def setUpWidget(view, name, field, value=None, prefix=None,
@@ -58,7 +60,6 @@
If there isn't already a view attribute of the given name, then a
widget will be created and assigned to the attribute.
"""
-
# Has a (custom) widget already been defined?
widget = getattr(view, name, None)
@@ -137,7 +138,6 @@
Returns true if any schema field related widget has data
that was entered by the user.
"""
-
for name, field in _fieldlist(names, schema):
if getattr(view, name).haveData():
return True
@@ -157,7 +157,6 @@
from the input, an error will be raised.
"""
-
result = {}
errors = []
@@ -192,7 +191,6 @@
raised.
"""
-
data = getWidgetsData(view, schema, required, names)
if content is None: