Commit ba22de4e authored by Jérome Perrin's avatar Jérome Perrin

get from request, not request.form

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31170 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b6fd025
...@@ -60,8 +60,7 @@ form = context\n ...@@ -60,8 +60,7 @@ form = context\n
request = context.REQUEST\n request = context.REQUEST\n
report_section_list = []\n report_section_list = []\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
selection_name=request.form.get(\'selection_name\', None)\n selection_name = request.get(\'selection_name\', None)\n
\n
\n \n
def getReportSectionListForObject(doc):\n def getReportSectionListForObject(doc):\n
""" Get all possible report section for object. """\n """ Get all possible report section for object. """\n
...@@ -92,7 +91,7 @@ if selection_name is not None:\n ...@@ -92,7 +91,7 @@ if selection_name is not None:\n
for doc in portal.portal_selections.callSelectionFor(selection_name, context=form):\n for doc in portal.portal_selections.callSelectionFor(selection_name, context=form):\n
report_section_list.extend(getReportSectionListForObject(doc))\n report_section_list.extend(getReportSectionListForObject(doc))\n
else:\n else:\n
# get only current (context) document \n # get only current (context) document\n
report_section_list.extend(getReportSectionListForObject(context))\n report_section_list.extend(getReportSectionListForObject(context))\n
\n \n
return report_section_list\n return report_section_list\n
......
220 221
\ 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