Commit 7a30c859 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor and remove line to add a publication section, because this categories isn't used more.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41388 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bb876bd
......@@ -59,12 +59,12 @@ uid_list = context.REQUEST.get("uids")\n
if uid_list is not None:\n
for catalog_object in portal.portal_catalog(portal_type=portal_type_list, \n
uid=uid_list):\n
if catalog_object.getValidationState() == "deleted":\n
portal.web_page_module.deleteContent(catalog_object.getId())\n
continue\n
object = context.restrictedTraverse(catalog_object.getPath())\n
object.setPublicationSection("trash")\n
object.delete()\n
if object.getValidationState() == "deleted":\n
portal.web_page_module.deleteContent(object.getId())\n
continue\n
else:\n
object.delete()\n
\n
return context.ERP5Site_redirect(context.REQUEST.get("HTTP_REFERER"))\n
</string> </value>
......
116
\ No newline at end of file
117
\ No newline at end of file
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