Commit 1cb16ba5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use a local property 'spreadsheet_mapping' instead of 'data' property, because...

use a local property 'spreadsheet_mapping' instead of 'data' property, because 'data' property should be only str or None since r28358.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28574 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9607c98
...@@ -115,7 +115,7 @@ if len(listbox) == 0:\n ...@@ -115,7 +115,7 @@ if len(listbox) == 0:\n
session_id = context.browser_id_manager.getBrowserId(create=1)\n session_id = context.browser_id_manager.getBrowserId(create=1)\n
session = context.portal_sessions[session_id]\n session = context.portal_sessions[session_id]\n
temp_file = newTempFile(context, session_id)\n temp_file = newTempFile(context, session_id)\n
temp_file.edit(data=spreadsheets)\n temp_file.edit(spreadsheet_mapping=spreadsheets)\n
\n \n
#create a temporary file_name\n #create a temporary file_name\n
timestamp = "%s" % DateTime.timeTime(DateTime())\n timestamp = "%s" % DateTime.timeTime(DateTime())\n
...@@ -143,7 +143,7 @@ else:\n ...@@ -143,7 +143,7 @@ else:\n
temp_file = session[temp_file_name]\n temp_file = session[temp_file_name]\n
# Clear this session after import is done\n # Clear this session after import is done\n
session[temp_file_name] = None\n session[temp_file_name] = None\n
spreadsheets = temp_file.getData()\n spreadsheets = temp_file.getProperty(\'spreadsheet_mapping\')\n
\n \n
# Build the data mapping\n # Build the data mapping\n
mapping = {}\n mapping = {}\n
......
393 394
\ 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