Commit 40679cd9 authored by Jérome Perrin's avatar Jérome Perrin

add an entry in workflow history when sub objects are deleted

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7667 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da17232a
......@@ -118,7 +118,15 @@ elif uids is not None:\n
qs = \'?portal_status_message=%s\' % message \n
else:\n
try : \n
object_ids = \', \'.join([ x.getObject().getId() for x in context.portal_catalog(uid=uids)])\n
context.manage_delObjects(uids=uids, REQUEST=REQUEST)\n
comment = N_(\'Deleted objects: ${object_ids}\',\n
mapping={\'object_ids\': object_ids})\n
# record object deletion in workflow history\n
context.getPortalObject().portal_workflow.doActionFor(\n
context,\n
\'edit_action\',\n
comment=comment)\n
message = N_("Deleted.")\n
qs = \'?portal_status_message=%s\' % message\n
except ConflictError : raise\n
......@@ -200,6 +208,11 @@ return REQUEST.RESPONSE.redirect( ret_url + qs )\n
<string>_getitem_</string>
<string>object</string>
<string>repr</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>object_ids</string>
<string>comment</string>
<string>Exception</string>
</tuple>
</value>
......
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