Commit 4fef209e authored by Kevin Deldycke's avatar Kevin Deldycke

Remove unneeded variable.

Add some debug log.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b303fa30
......@@ -96,10 +96,16 @@ if creation_mode == \'clone\':\n
# To avoid confusion (invisible published cloned document due to duplicate document references in a given section), always modify the document\n
\n
# Copy and paste the object\n
directory = context.getParent()\n
clipboard = directory.manage_copyObjects(ids=[context.getId()])\n
paste_result = directory.manage_pasteObjects(cb_copy_data=clipboard)\n
new_object = directory[paste_result[0][\'new_id\']]\n
\n
#context.log("Kev test directory >>>>>", repr(directory))\n
#context.log("Kev test context.getI >>>>>", repr(context.getId()))\n
#context.log("Kev test clipboard >>>>>", repr(clipboard))\n
#context.log("Kev test paste_result >>>>>", repr(paste_result))\n
#context.log("Kev test directory.WebSite_getUrl() >>>>>", repr(directory.WebSite_getUrl()))\n
#context.log("Kev test new_object.getId() >>>>>", repr(new_object.getId()))\n
\n
redirect_url = \'%s/%s/WebPage_view?editable_mode=1\' % (directory.WebSite_getUrl(), new_object.getId())\n
\n
......@@ -167,10 +173,6 @@ return context.REQUEST.RESPONSE.redirect(redirect_url)\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_web/WebSite_newContent</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
......
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