From ba22de4e1f4ffa77ceb656e97b98dec967b14da4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 8 Dec 2009 17:09:54 +0000
Subject: [PATCH] get from request, not request.form

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31170 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Folder_getContentListAsODSReportSectionList.xml          | 5 ++---
 bt5/erp5_ods_style/bt/revision                               | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml
index 172731d55f..e5a50f724d 100644
--- a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml
+++ b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml
@@ -60,8 +60,7 @@ form = context\n
 request = context.REQUEST\n
 report_section_list = []\n
 portal = context.getPortalObject()\n
-selection_name=request.form.get(\'selection_name\', None)\n
-\n
+selection_name = request.get(\'selection_name\', None)\n
 \n
 def getReportSectionListForObject(doc):\n
   """ Get all possible report section for object. """\n
@@ -92,7 +91,7 @@ if selection_name is not None:\n
     for doc in portal.portal_selections.callSelectionFor(selection_name, context=form):\n
       report_section_list.extend(getReportSectionListForObject(doc))\n
 else:\n
-  # get only current (context) document \n
+  # get only current (context) document\n
   report_section_list.extend(getReportSectionListForObject(context))\n
 \n
 return report_section_list\n
diff --git a/bt5/erp5_ods_style/bt/revision b/bt5/erp5_ods_style/bt/revision
index 3960544522..c5a644422f 100644
--- a/bt5/erp5_ods_style/bt/revision
+++ b/bt5/erp5_ods_style/bt/revision
@@ -1 +1 @@
-220
\ No newline at end of file
+221
\ No newline at end of file
-- 
2.30.9