Commit 347a19a0 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: the ',' character has to be kept during CSV import.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12128 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 649a070b
......@@ -88,7 +88,10 @@ def splitCsvLine(str_line):\n
\n
p_stack = \'\'\n
for p in pieces_of_line:\n
p_stack += p\n
if p_stack == \'\':\n
p_stack = p\n
else:\n
p_stack += \',%s\' % p\n
if p_stack.count(\'"\') % 2 == 0:\n
unclean_list.append(p_stack)\n
p_stack = \'\'\n
......@@ -137,6 +140,12 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>import_file, **kw</string> </value>
......
240
\ No newline at end of file
242
\ 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