[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form -
widget.py:1.56 editwizard.py:1.17 add.py:1.34
Jeremy Hylton
cvs-admin at zope.org
Mon Nov 3 16:38:33 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv3612/app/browser/form
Modified Files:
widget.py editwizard.py add.py
Log Message:
Remove unused local variables.
=== Zope3/src/zope/app/browser/form/widget.py 1.55 => 1.56 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.55 Fri Sep 26 15:53:33 2003
+++ Zope3/src/zope/app/browser/form/widget.py Mon Nov 3 16:38:01 2003
@@ -1165,7 +1165,6 @@
sequence = self._generateSequence()
num_items = len(sequence)
min_length = self.context.min_length
- max_length = self.context.max_length
# ensure minimum number of items in the form
if num_items < min_length:
@@ -1234,7 +1233,6 @@
subprefix = re.compile(r'(\d+)\.(.+)')
if self.context.value_type is None:
return []
- field = self.context.value_type
# pre-populate
found = {}
=== Zope3/src/zope/app/browser/form/editwizard.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/browser/form/editwizard.py:1.16 Wed Oct 22 15:15:02 2003
+++ Zope3/src/zope/app/browser/form/editwizard.py Mon Nov 3 16:38:01 2003
@@ -160,7 +160,7 @@
if k not in self.currentPane().names:
getattr(self, k).getInputValue()
self.show_submit = 1
- except WidgetInputError,x:
+ except WidgetInputError:
self.show_submit = 0
self.show_next = (self._current_pane_idx < len(self.panes) - 1)
=== Zope3/src/zope/app/browser/form/add.py 1.33 => 1.34 ===
--- Zope3/src/zope/app/browser/form/add.py:1.33 Mon Oct 6 18:08:51 2003
+++ Zope3/src/zope/app/browser/form/add.py Mon Nov 3 16:38:02 2003
@@ -58,7 +58,7 @@
strict=True,
names=self.fieldNames,
set_missing=False)
- content = self.createAndAdd(data)
+ self.createAndAdd(data)
except WidgetsError, errors:
self.errors = errors
self.update_status = _("An error occured.")
More information about the Zope3-Checkins
mailing list