Commit be371f2d authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-12-06 gabriel

* refactor the script WebSection_deleteObjectList to remove completely the objects with state 'deleted'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d3f0b84
...@@ -60,11 +60,11 @@ if uid_list is not None:\n ...@@ -60,11 +60,11 @@ if uid_list is not None:\n
for catalog_object in portal.portal_catalog(portal_type=portal_type_list, \n for catalog_object in portal.portal_catalog(portal_type=portal_type_list, \n
uid=uid_list):\n uid=uid_list):\n
if catalog_object.getValidationState() == "deleted":\n if catalog_object.getValidationState() == "deleted":\n
portal.web_page_module.deleteContent(catalog_object.getId())\n
continue\n continue\n
object = context.restrictedTraverse(catalog_object.getPath())\n object = context.restrictedTraverse(catalog_object.getPath())\n
object.setPublicationSection("trash")\n
object.delete()\n object.delete()\n
\n
#portal.web_page_module.deleteContent(id_list)\n
\n \n
return context.ERP5Site_redirect(website_url, keep_items={"reset": 1})\n return context.ERP5Site_redirect(website_url, keep_items={"reset": 1})\n
</string> </value> </string> </value>
......
2010-12-06 gabriel
* refactor the script WebSection_deleteObjectList to remove completely the objects with state 'deleted'.
2010-12-06 gabriel 2010-12-06 gabriel
* Added one domain and categories to filter the documents in listbox. * Added one domain and categories to filter the documents in listbox.
......
98 99
\ No newline at end of file \ 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