Commit 04741dc4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos in comments.

parent 9c4f19b1
......@@ -119,7 +119,7 @@ class Alarm(XMLObject, PeriodicityMixin):
if not checkPermission(Permissions.ManagePortal, self):
raise Unauthorized('fixing problems or activating a disabled alarm is not allowed')
# Use UnrestrictedMethod, so that the behavior would not
# Use UnrestrictedMethod, so that the behaviour would not
# change even if this method is invoked by random users.
@UnrestrictedMethod
def _activeSense():
......@@ -160,7 +160,7 @@ class Alarm(XMLObject, PeriodicityMixin):
self.activate(after_tag=tag).notify(include_active=True, params=params)
# switch to nobody temporarily so that unrestricted _activeSense
# is already invoked by system user.
# is always invoked by system user.
sm = getSecurityManager()
newSecurityManager(None, nobody)
try:
......
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