Commit 652637bc authored by Vincent Pelletier's avatar Vincent Pelletier

Remove commented-out code.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fb3f0b9
...@@ -115,21 +115,10 @@ class ActiveProcess(Base): ...@@ -115,21 +115,10 @@ class ActiveProcess(Base):
# Improve this to include sort order XXX # Improve this to include sort order XXX
return self.result_list.values() return self.result_list.values()
# security.declareProtected(CMFCorePermissions.ManagePortal, 'getErrorListText')
# def getResultListText(self):
# """
# Returns the list of errors as text
# """
# return '\n'.join(map(lambda x:repr(x), self.error_list))
#
security.declareProtected(CMFCorePermissions.ManagePortal, 'activateResult') security.declareProtected(CMFCorePermissions.ManagePortal, 'activateResult')
def activateResult(self, result): def activateResult(self, result):
if result not in (None, 0, '', (), []): if result not in (None, 0, '', (), []):
#self.activate().postError(result)
self.postResult(result) # Until we get SQLQueue self.postResult(result) # Until we get SQLQueue
# If result is a callable, then use it to propagate result (... ??? )
#if callable(result):
# return self.activateResult(Result(self, 'activateResult',result())
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