From 4fef209edf5cdc3ffce4384299684b132ed64b2a Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Wed, 19 Jul 2006 12:10:47 +0000
Subject: [PATCH] Remove unneeded variable. Add some debug log.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8575 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_web/WebSite_newContent.xml     | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_newContent.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_newContent.xml
index c29581ab20..edc4ec5a85 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_newContent.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_newContent.xml
@@ -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>
-- 
2.30.9