Commit 6c8e6042 authored by Nicolas Dumazet's avatar Nicolas Dumazet

clean up script, give up deprecated parameter names


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31612 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00da7776
...@@ -53,26 +53,23 @@ ...@@ -53,26 +53,23 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if modified != \'\' and modified != \'none\':\n <value> <string>other_file_list = []\n
other_files = modified.split(\',\')\n \n
if removed != \'\' and removed != \'none\':\n if modified != \'\' and modified != \'none\':\n
other_files.extend(removed.split(\',\'))\n other_file_list += modified.split(\',\')\n
else:\n if removed != \'\' and removed != \'none\':\n
if removed != \'\' and removed != \'none\':\n other_file_list += removed.split(\',\')\n
other_files = removed.split(\',\')\n \n
else :\n added_file_list = []\n
other_files = None\n
\n \n
if added != \'\' and added != \'none\':\n if added != \'\' and added != \'none\':\n
added_files = added.split(\',\')\n added_file_list += added.split(\',\')\n
else:\n
added_files = None\n
\n \n
if not added_files and not other_files:\n if not added_files and not other_files:\n
context.REQUEST.set(\'portal_status_message\', \'Nothing to revert.\')\n context.REQUEST.set(\'portal_status_message\', \'Nothing to revert.\')\n
return context.BusinessTemplate_viewSvnStatus()\n return context.BusinessTemplate_viewSvnStatus()\n
\n \n
context.getPortalObject()["portal_subversion"].revertZODB(business_template=context, added_files=added_files, other_files=other_files)\n context.getPortalObject()["portal_subversion"].revertZODB(business_template=context, added_file_list=added_file_list, other_file_list=other_file_list)\n
\n \n
context.REQUEST.set(\'portal_status_message\', \'Changes reverted successfully.\')\n context.REQUEST.set(\'portal_status_message\', \'Changes reverted successfully.\')\n
return context.BusinessTemplate_viewSvnStatus()\n return context.BusinessTemplate_viewSvnStatus()\n
...@@ -116,10 +113,12 @@ return context.BusinessTemplate_viewSvnStatus()\n ...@@ -116,10 +113,12 @@ return context.BusinessTemplate_viewSvnStatus()\n
<string>modified</string> <string>modified</string>
<string>removed</string> <string>removed</string>
<string>kw</string> <string>kw</string>
<string>other_file_list</string>
<string>_inplacevar_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>other_files</string> <string>added_file_list</string>
<string>None</string>
<string>added_files</string> <string>added_files</string>
<string>other_files</string>
<string>context</string> <string>context</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
......
546 547
\ 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