Commit e8a24d53 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2006-04-25 yo

* Folder_cut must redirect to the original form even when it fails.
* Reduce the duplicated code in Folder_copy.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6917 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5de8c00b
...@@ -85,10 +85,9 @@ if uids != []:\n ...@@ -85,10 +85,9 @@ if uids != []:\n
#context.manage_copyObjects(uids=REQUEST[\'uids\'], REQUEST=REQUEST, RESPONSE=REQUEST.RESPONSE)\n #context.manage_copyObjects(uids=REQUEST[\'uids\'], REQUEST=REQUEST, RESPONSE=REQUEST.RESPONSE)\n
context.manage_copyObjects(uids=uids, REQUEST=REQUEST, RESPONSE=REQUEST.RESPONSE)\n context.manage_copyObjects(uids=uids, REQUEST=REQUEST, RESPONSE=REQUEST.RESPONSE)\n
message = N_("Item(s)+Copied.")\n message = N_("Item(s)+Copied.")\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % message)\n
else:\n else:\n
message = N_("Please+select+one+or+more+items+to+copy+first.")\n message = N_("Please+select+one+or+more+items+to+copy+first.")\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % message)\n return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % message)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -84,10 +84,9 @@ if uids != []:\n ...@@ -84,10 +84,9 @@ if uids != []:\n
#context.manage_cutObjects(uids=REQUEST[\'uids\'], REQUEST=REQUEST)\n #context.manage_cutObjects(uids=REQUEST[\'uids\'], REQUEST=REQUEST)\n
context.manage_cutObjects(uids=uids, REQUEST=REQUEST)\n context.manage_cutObjects(uids=uids, REQUEST=REQUEST)\n
message = N_("Item(s)+Cut.")\n message = N_("Item(s)+Cut.")\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % message)\n
else:\n else:\n
message = N_("Please+select+one+or+more+items+to+cut+first.")\n message = N_("Please+select+one+or+more+items+to+cut+first.")\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/Folder_viewContentList?portal_status_message=%s\' % message)\n return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % message)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
2006-04-25 yo
* Folder_cut must redirect to the original form even when it fails.
* Reduce the duplicated code in Folder_copy.
2006-04-18 jerome 2006-04-18 jerome
* update ERP5Site_reindexAll to reindex portal_alarms and to reindex the whole site in 2 stages, persons in stage 1, and everything again in stage 2 (ERP5Security requires Persons to be indexed) * update ERP5Site_reindexAll to reindex portal_alarms and to reindex the whole site in 2 stages, persons in stage 1, and everything again in stage 2 (ERP5Security requires Persons to be indexed)
......
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