Commit 5c481545 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2006-04-25 yo

* Folder_deleteObjectList must redirect to the original form with an error message when nothing is selected.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6962 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67ab8773
...@@ -67,10 +67,16 @@ ...@@ -67,10 +67,16 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request=context.REQUEST\n <value> <string>request=context.REQUEST\n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n \n
selected_uids = context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids)\n selected_uids = context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids)\n
uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name)\n uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name)\n
\n \n
if uids == []:\n
message = N_("Please+select+one+or+more+items+to+delete+first.")\n
qs = \'?portal_status_message=%s\' % message\n
return context.REQUEST.RESPONSE.redirect( context.absolute_url() + \'/\' + form_id + qs )\n
\n \n
kw = {\'uid\': uids}\n kw = {\'uid\': uids}\n
request.set(\'object_uid\', context.getUid())\n request.set(\'object_uid\', context.getUid())\n
...@@ -123,9 +129,13 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n ...@@ -123,9 +129,13 @@ return context.Folder_viewDeleteDialog(uids=uids, REQUEST=request)\n
<string>listbox_uid</string> <string>listbox_uid</string>
<string>selection_name</string> <string>selection_name</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>request</string>
<string>portal</string>
<string>N_</string>
<string>selected_uids</string> <string>selected_uids</string>
<string>message</string>
<string>qs</string>
<string>kw</string> <string>kw</string>
</tuple> </tuple>
</value> </value>
......
2006-04-27 yo
* Embed the query string in a request int the resulting HTML in form_html, list_dialog_master, list_master and view_master.
2006-04-25 yo
* Folder_deleteObjectList must redirect to the original form with an error message when nothing is selected.
2006-04-25 yo 2006-04-25 yo
* Folder_cut must redirect to the original form even when it fails. * Folder_cut must redirect to the original form even when it fails.
* Reduce the duplicated code in Folder_copy. * Reduce the duplicated code in Folder_copy.
......
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