Commit 5924e84a authored by Nicolas Dumazet's avatar Nicolas Dumazet

pass is_indexable=False to manage_pasteObjects to avoid indexing the pasted objects


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35609 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 60cc49ee
...@@ -78,7 +78,7 @@ for existing_template in preference.contentValues(\n ...@@ -78,7 +78,7 @@ for existing_template in preference.contentValues(\n
parent = context.getParentValue()\n parent = context.getParentValue()\n
document_id = context.getId()\n document_id = context.getId()\n
cp = parent.manage_copyObjects(ids=[document_id])\n cp = parent.manage_copyObjects(ids=[document_id])\n
paste_info, = preference.manage_pasteObjects(cb_copy_data=cp)\n paste_info, = preference.manage_pasteObjects(cb_copy_data=cp, is_indexable=False)\n
\n \n
template = getattr(preference, paste_info[\'new_id\'])\n template = getattr(preference, paste_info[\'new_id\'])\n
template.makeTemplate()\n template.makeTemplate()\n
...@@ -138,6 +138,7 @@ return context.Base_redirect(form_id,\n ...@@ -138,6 +138,7 @@ return context.Base_redirect(form_id,\n
<string>parent</string> <string>parent</string>
<string>document_id</string> <string>document_id</string>
<string>cp</string> <string>cp</string>
<string>False</string>
<string>paste_info</string> <string>paste_info</string>
<string>getattr</string> <string>getattr</string>
<string>_getitem_</string> <string>_getitem_</string>
......
1587 1588
\ 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