Commit 17a546e9 authored by Jérome Perrin's avatar Jérome Perrin

Change the delete confirmation dialog to use the same columns as in the previous list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5f10e24
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -68,7 +65,9 @@ ...@@ -68,7 +65,9 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request=context.REQUEST\n <value> <string encoding="cdata"><![CDATA[
request=context.REQUEST\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
\n \n
...@@ -80,12 +79,21 @@ if uids == []:\n ...@@ -80,12 +79,21 @@ if uids == []:\n
qs = \'?portal_status_message=%s\' % message\n qs = \'?portal_status_message=%s\' % message\n
return request.RESPONSE.redirect( context.absolute_url() + \'/\' + form_id + qs )\n return request.RESPONSE.redirect( context.absolute_url() + \'/\' + form_id + qs )\n
\n \n
kw = {\'uid\': uids}\n # XXX If we come from the view mode -> list mode proxy, make sure we don\'t make\n
# another proxy to this proxy.\n
if form_id == \'Base_viewListModeRenderer\':\n
form_id = context.Base_viewListModeRenderer.listbox.get_value(\'form_id\')\n
\n
kw = {\'uid\': uids, \'form_id\': form_id}\n
request.set(\'object_uid\', context.getUid())\n request.set(\'object_uid\', context.getUid())\n
request.set(\'uids\', uids)\n request.set(\'uids\', uids)\n
request.set(\'proxy_form_id\', form_id)\n
\n
context.portal_selections.setSelectionParamsFor(\'folder_delete_selection\', kw)\n context.portal_selections.setSelectionParamsFor(\'folder_delete_selection\', kw)\n
return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -99,6 +107,12 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n ...@@ -99,6 +107,12 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>selection_index=None,form_id=\'\',uids=[], listbox_uid=[],selection_name=\'\'</string> </value> <value> <string>selection_index=None,form_id=\'\',uids=[], listbox_uid=[],selection_name=\'\'</string> </value>
......
726 727
\ 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