Fred fix a speling error in Zope 3.2.

parent 49be6525
...@@ -135,7 +135,7 @@ class EditView(BrowserView): ...@@ -135,7 +135,7 @@ class EditView(BrowserView):
notify(ObjectModifiedEvent(content)) notify(ObjectModifiedEvent(content))
except WidgetsError, errors: except WidgetsError, errors:
self.errors = errors self.errors = errors
status = _("An error occured.") status = _("An error occurred.")
transaction.abort() transaction.abort()
else: else:
setUpEditWidgets(self, self.schema, source=self.adapted, setUpEditWidgets(self, self.schema, source=self.adapted,
...@@ -178,7 +178,7 @@ class AddView(EditView): ...@@ -178,7 +178,7 @@ class AddView(EditView):
self.createAndAdd(data) self.createAndAdd(data)
except WidgetsError, errors: except WidgetsError, errors:
self.errors = errors self.errors = errors
self.update_status = _("An error occured.") self.update_status = _("An error occurred.")
return self.update_status return self.update_status
self.request.response.redirect(self.nextURL()) self.request.response.redirect(self.nextURL())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment