Commit 8d482a11 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not hide any error that may arrise from activateObject call.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19150 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9beb483
...@@ -133,18 +133,7 @@ class ActiveObject(ExtensionClass.Base): ...@@ -133,18 +133,7 @@ class ActiveObject(ExtensionClass.Base):
# activate returns an ActiveWrapper # activate returns an ActiveWrapper
# a queue can be provided as well as extra parameters # a queue can be provided as well as extra parameters
# which can be used for example to define deferred tasks # which can be used for example to define deferred tasks
try: return activity_tool.activateObject(self, activity, active_process, **kw)
return activity_tool.activateObject(self, activity, active_process, **kw)
except ConflictError:
raise
except:
LOG("CMFActivity", WARNING,
'could not create activity for %s' % self.getRelativeUrl(),
error=sys.exc_info())
# If the portal_activities were not created
# return a passive object
if passive_commit: get_transaction().commit()
return self
security.declareProtected( permissions.ModifyPortalContent, 'flushActivity' ) security.declareProtected( permissions.ModifyPortalContent, 'flushActivity' )
def flushActivity(self, invoke=0, **kw): def flushActivity(self, invoke=0, **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