Commit 7fb84cc7 authored by Sebastien Robin's avatar Sebastien Robin

2009-08-24 Seb

* Do not call immediateReindexObject after pasting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0753b83
...@@ -78,10 +78,7 @@ if context.cb_dataValid and error_message==\'\':\n ...@@ -78,10 +78,7 @@ if context.cb_dataValid and error_message==\'\':\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n
else:\n else:\n
new_id_list = [i[\'new_id\'] for i in new_item_list]\n new_id_list = [i[\'new_id\'] for i in new_item_list]\n
for my_id in new_id_list:\n msg = Base_translateString(\'Item(s) paste in progress.\')\n
context[my_id].flushActivity(invoke=0, method_id=\'immediateReindexObject\')\n
context[my_id].recursiveImmediateReindexObject()\n
msg = Base_translateString(\'Item(s) pasted.\')\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % msg)\n
elif context.cb_dataValid and error_message!=\'\':\n elif context.cb_dataValid and error_message!=\'\':\n
return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % error_message)\n return REQUEST.RESPONSE.redirect(context.absolute_url() + \'/\' + form_id + \'?portal_status_message=%s\' % error_message)\n
...@@ -145,7 +142,6 @@ else:\n ...@@ -145,7 +142,6 @@ else:\n
<string>msg</string> <string>msg</string>
<string>i</string> <string>i</string>
<string>new_id_list</string> <string>new_id_list</string>
<string>my_id</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1282 1283
\ 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