From e71040864e909fe26c8516b05576e14095f20b47 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 13 Mar 2007 12:48:03 +0000 Subject: [PATCH] Remove unused code which was written to workaround an HTML-interface problem which doesn't exist any more. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13400 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Checkbook_createCheckList.xml | 26 ++++--------------- bt5/erp5_banking_core/bt/revision | 2 +- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_createCheckList.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_createCheckList.xml index 0db7186070..1998c862d6 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_createCheckList.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_createCheckList.xml @@ -70,19 +70,8 @@ <key> <string>_body</string> </key> <value> <string>request = context.REQUEST\n \n -if start_number == None and stop_number == None:\n -\n - try:\n - # when clicking on the button\n - start_number = int(request[\'start_number\'])\n - stop_number = int(request[\'stop_number\'])\n - except:\n - # when hitting the enter key\n - start_number = int(request[\'field_my_start_number\'])\n - stop_number = int(request[\'field_my_stop_number\'])\n -\n context.setTitle(\'%s - %s\' % (start_number, stop_number))\n -for i in range(int(start_number), int(stop_number) + 1):\n +for i in xrange(int(start_number), int(stop_number) + 1):\n newline = context.newContent(portal_type=\'Check\', title=str(i))\n newline.setDestination(context.getDestinationSection())\n newline.setStartDate(context.getStartDate())\n @@ -110,7 +99,7 @@ request.RESPONSE.redirect(context.absolute_url())\n </item> <item> <key> <string>_params</string> </key> - <value> <string>start_number = 0, stop_number = 0</string> </value> + <value> <string>start_number, stop_number</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -141,11 +130,9 @@ request.RESPONSE.redirect(context.absolute_url())\n <string>_getattr_</string> <string>context</string> <string>request</string> - <string>None</string> - <string>int</string> - <string>_getitem_</string> <string>_getiter_</string> - <string>range</string> + <string>xrange</string> + <string>int</string> <string>i</string> <string>str</string> <string>newline</string> @@ -160,10 +147,7 @@ request.RESPONSE.redirect(context.absolute_url())\n <item> <key> <string>func_defaults</string> </key> <value> - <tuple> - <int>0</int> - <int>0</int> - </tuple> + <none/> </value> </item> <item> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index b5db9c417a..aa59885c83 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -139 \ No newline at end of file +143 \ No newline at end of file -- 2.30.9