Commit 1b52059b authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: drop ActiveProcess.activateResult

It became superfluous with commit 797a8c29.
parent 994ba134
...@@ -167,7 +167,7 @@ def checkConversionToolAvailability(self): ...@@ -167,7 +167,7 @@ def checkConversionToolAvailability(self):
severity = 1 severity = 1
result.edit(detail=message) result.edit(detail=message)
result.edit(severity=severity) result.edit(severity=severity)
active_process.activateResult(result) active_process.postResult(result)
from Products.ERP5Type.Utils import checkPythonSourceCode from Products.ERP5Type.Utils import checkPythonSourceCode
......
...@@ -124,11 +124,6 @@ class ActiveProcess(Base): ...@@ -124,11 +124,6 @@ class ActiveProcess(Base):
return result_list.values() return result_list.values()
return list(result_list) return list(result_list)
security.declareProtected(CMFCorePermissions.ManagePortal, 'activateResult')
def activateResult(self, result):
if result not in (None, 0, '', (), []):
self.postResult(result) # Until we get SQLQueue
security.declareProtected( CMFCorePermissions.View, 'hasActivity' ) security.declareProtected( CMFCorePermissions.View, 'hasActivity' )
def hasActivity(self, **kw): def hasActivity(self, **kw):
""" """
......
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