Commit e64d2427 authored by Jean-Paul Smets's avatar Jean-Paul Smets

new postError


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@126 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eba144b5
...@@ -53,6 +53,7 @@ def addActiveProcess( self, id, title='', REQUEST=None ): ...@@ -53,6 +53,7 @@ def addActiveProcess( self, id, title='', REQUEST=None ):
class ActiveProcess(Base): class ActiveProcess(Base):
""" """
ActiveProcess is used to centralise interaction between multiple ActiveObject ActiveProcess is used to centralise interaction between multiple ActiveObject
RENAME: ActiveResult
""" """
meta_type='CMF Active Process' meta_type='CMF Active Process'
...@@ -79,9 +80,7 @@ class ActiveProcess(Base): ...@@ -79,9 +80,7 @@ class ActiveProcess(Base):
# Base methods # Base methods
security.declareProtected(CMFCorePermissions.ManagePortal, 'postError') security.declareProtected(CMFCorePermissions.ManagePortal, 'postError')
def postError(self, error): def postError(self, error):
if not hasattr(aq_base(self), 'error_list'): self.error_list = self.get('error_list', []) + [error]
self.error_list = []
self.error_list.append(error)
security.declareProtected(CMFCorePermissions.ManagePortal, 'getErrorList') security.declareProtected(CMFCorePermissions.ManagePortal, 'getErrorList')
def getErrorList(self): def getErrorList(self):
......
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