Commit 1fa44ac1 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Minor syntax changes (space)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19202 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f120a68c
No related merge requests found
......@@ -51,7 +51,7 @@ class ActiveResult:
# getProperty default
_MARKER = None
def __init__(self,summary='',severity=INFO,detail='',**kw):
def __init__(self, summary='', severity=INFO, detail='', **kw):
"""
set all parameters
"""
......
......@@ -172,7 +172,7 @@ class Message:
def activateResult(self, activity_tool, result, object):
if self.active_process is not None:
active_process = activity_tool.unrestrictedTraverse(self.active_process)
if isinstance(result,ActiveResult):
if isinstance(result, ActiveResult):
result.edit(object_path=object)
result.edit(method_id=self.method_id)
# XXX Allow other method_id in future
......@@ -180,8 +180,8 @@ class Message:
else:
active_process.activateResult(
ActiveResult(object_path=object,
method_id=self.method_id,
result=result)) # XXX Allow other method_id in future
method_id=self.method_id,
result=result)) # XXX Allow other method_id in future
def __call__(self, activity_tool):
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