Commit e9072a02 authored by Kevin Deldycke's avatar Kevin Deldycke

Add commented logs

+ minor modifications.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8581 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f616acf
......@@ -79,8 +79,11 @@ dest = directory[paste_result[0][\'new_id\']]\n
#if id is not None:\n
# directory.manage_renameObject(id=dest.getId(),new_id=id)\n
\n
#context.log(\'WebSite_clone\', context.REQUEST.form)\n
\n
for (key, val) in context.REQUEST.form.items():\n
if key != \'id\' and dest.hasProperty(key):\n
#context.log(\'WebSite_clone\',\'overwriting attr "%s" to value "%s"\' % (key,val))\n
dest.setProperty(key, val)\n
\n
return context.REQUEST.RESPONSE.redirect(\'%s/%s\' % (directory.WebSite_getUrl(), dest.getId()))\n
......@@ -96,10 +99,6 @@ return context.REQUEST.RESPONSE.redirect(\'%s/%s\' % (directory.WebSite_getUrl()
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_web/WebSite_clone</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