Commit aa82ec38 authored by Gabriel Monnerat's avatar Gabriel Monnerat

2010-12-04 gabriel

* Refactor script to not delete object completely but only change the state in the first time. The goals is only remove the object completely on the trash section.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41119 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee3d765d
......@@ -57,10 +57,14 @@ website_url = context.absolute_url()\n
uid_list = context.REQUEST.get("uids")\n
\n
if uid_list is not None:\n
object_list = portal.portal_catalog(portal_type=portal_type_list, \n
uid=uid_list)\n
id_list = [object.getId() for object in object_list]\n
portal.web_page_module.deleteContent(id_list)\n
for catalog_object in portal.portal_catalog(portal_type=portal_type_list, \n
uid=uid_list):\n
if catalog_object.getValidationState() == "deleted":\n
continue\n
object = context.restrictedTraverse(catalog_object.getPath())\n
object.delete()\n
\n
#portal.web_page_module.deleteContent(id_list)\n
\n
return context.ERP5Site_redirect(website_url, keep_items={"reset": 1})\n
</string> </value>
......@@ -106,12 +110,9 @@ return context.ERP5Site_redirect(website_url, keep_items={"reset": 1})\n
<string>website_url</string>
<string>uid_list</string>
<string>None</string>
<string>object_list</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>catalog_object</string>
<string>object</string>
<string>id_list</string>
</tuple>
</value>
</item>
......
2010-12-04 gabriel
* Refactor script to not delete object completely but only change the state in the first time. The goals is only remove the object completely on the trash section.
2010-11-12 gabriel
* clean up css to show records number of listbox in toolbar
......
94
\ No newline at end of file
95
\ 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