[Zope3-checkins] SVN: Zope3/trunk/src/zope/ fix recurring typo:
occured --> occurred
Fred L. Drake, Jr.
fdrake at gmail.com
Wed Nov 30 00:00:45 EST 2005
Log message for revision 40422:
fix recurring typo: occured --> occurred
Changed:
U Zope3/trunk/src/zope/app/component/registration.py
U Zope3/trunk/src/zope/app/form/browser/editview.py
U Zope3/trunk/src/zope/app/form/browser/formview.py
U Zope3/trunk/src/zope/app/publication/http.py
U Zope3/trunk/src/zope/app/pythonpage/browser.py
U Zope3/trunk/src/zope/app/schema/browser/__init__.py
U Zope3/trunk/src/zope/app/workflow/stateful/instance.py
U Zope3/trunk/src/zope/documenttemplate/dt_try.py
U Zope3/trunk/src/zope/server/interfaces/__init__.py
U Zope3/trunk/src/zope/wfmc/interfaces.py
-=-
Modified: Zope3/trunk/src/zope/app/component/registration.py
===================================================================
--- Zope3/trunk/src/zope/app/component/registration.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/component/registration.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -38,7 +38,8 @@
class RegistrationEvent(objectevent.ObjectEvent):
- """An event that is created when a registration-related activity occured."""
+ """An event that is created when a registration-related activity occurred.
+ """
implements(interfaces.IRegistrationEvent)
class RegistrationActivatedEvent(RegistrationEvent):
Modified: Zope3/trunk/src/zope/app/form/browser/editview.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/editview.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/form/browser/editview.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -103,7 +103,7 @@
notify(ObjectModifiedEvent(content, description))
except WidgetsError, errors:
self.errors = errors
- status = _("An error occured.")
+ status = _("An error occurred.")
transaction.abort()
else:
setUpEditWidgets(self, self.schema, source=self.adapted,
Modified: Zope3/trunk/src/zope/app/form/browser/formview.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/formview.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/form/browser/formview.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -75,7 +75,7 @@
self, self.schema, target=self.data, names=self.fieldNames)
except WidgetsError, errors:
self.errors = errors
- status = _("An error occured.")
+ status = _("An error occurred.")
transaction.abort()
else:
if changed:
Modified: Zope3/trunk/src/zope/app/publication/http.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/http.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/publication/http.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -30,9 +30,9 @@
class IMethodNotAllowed(IException):
"""An exception that signals the 405 Method Not Allowed HTTP error"""
- object = Attribute("""The object on which the error occured""")
+ object = Attribute("""The object on which the error occurred""")
- request = Attribute("""The request in which the error occured""")
+ request = Attribute("""The request in which the error occurred""")
class MethodNotAllowed(Exception):
Modified: Zope3/trunk/src/zope/app/pythonpage/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/pythonpage/browser.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/pythonpage/browser.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -40,7 +40,7 @@
status = super(PythonPageEditView, self).update()
except SyntaxError, err:
self.syntaxError = err
- status = _('A syntax error occured.')
+ status = _('A syntax error occurred.')
self.update_status = status
return status
Modified: Zope3/trunk/src/zope/app/schema/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/schema/browser/__init__.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/schema/browser/__init__.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -24,6 +24,9 @@
from zope.app.publisher.browser import BrowserView
from zope.schema import getFieldNamesInOrder, getFieldsInOrder
+
+_msg_anErrorOccurred = _("An error occurred")
+
class EditSchema(BrowserView):
edit = ViewPageTemplateFile('schema_edit.pt')
@@ -50,7 +53,7 @@
if 'DELETE' in request:
if not 'ids' in request:
self.errors = (_("Must select a field to delete"),)
- status = _("An error occured.")
+ status = _msg_anErrorOccurred
for id in request.get('ids', []):
del container[id]
elif 'MOVE_UP' in request or 'MOVE_DOWN' in request:
@@ -63,7 +66,7 @@
#TODO variable insertion must not be expanded until
# after the translation... preferably use mapping here
self.errors = (_("Invalid field name: %s" % name),)
- status = _("An error occured.")
+ status = _msg_anErrorOccurred
p = names.index(name) + delta
try:
self.context.moveField(name, p)
@@ -71,7 +74,7 @@
#TODO variable insertion must not be expanded until
# after the translation... preferably use mapping here
self.errors = (_("Invalid position: %s" % p),)
- status = _("An error occured.")
+ status = _msg_anErrorOccurred
self.update_status = status
return status
Modified: Zope3/trunk/src/zope/app/workflow/stateful/instance.py
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/instance.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/app/workflow/stateful/instance.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -208,7 +208,7 @@
# change status
self._status = transition.destinationState
- # Send an event after the transition occured.
+ # Send an event after the transition occurred.
notify(AfterTransitionEvent(obj, self, transition))
# check for automatic transitions and fire them if necessary
Modified: Zope3/trunk/src/zope/documenttemplate/dt_try.py
===================================================================
--- Zope3/trunk/src/zope/documenttemplate/dt_try.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/documenttemplate/dt_try.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -186,7 +186,7 @@
md._pop(1)
else:
- # No errors have occured, render the optional else block
+ # No errors have occurred, render the optional else block
if (self.elseBlock is None):
return result
else:
Modified: Zope3/trunk/src/zope/server/interfaces/__init__.py
===================================================================
--- Zope3/trunk/src/zope/server/interfaces/__init__.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/server/interfaces/__init__.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -155,7 +155,7 @@
"""
def handle_error():
- """An error occured, but we are still trying to fix it.
+ """An error occurred, but we are still trying to fix it.
"""
def handle_expt():
Modified: Zope3/trunk/src/zope/wfmc/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/wfmc/interfaces.py 2005-11-30 04:15:30 UTC (rev 40421)
+++ Zope3/trunk/src/zope/wfmc/interfaces.py 2005-11-30 05:00:44 UTC (rev 40422)
@@ -270,7 +270,7 @@
"""
class ProcessError(Exception):
- """An error occured in execution of a process
+ """An error occurred in execution of a process.
"""
class IProcessStarted(interface.Interface):
More information about the Zope3-Checkins
mailing list