Commit 6550da1f authored by Ivan Tyagov's avatar Ivan Tyagov

Empty strings are not considered valid identifier.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34385 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80c081cb
...@@ -220,6 +220,9 @@ for table_name in spreadsheet_list.keys():\n ...@@ -220,6 +220,9 @@ for table_name in spreadsheet_list.keys():\n
for cell_index, cell in enumerate(line):\n for cell_index, cell in enumerate(line):\n
# Get the property corresponding to the cell data\n # Get the property corresponding to the cell data\n
property_id = property_map[cell_index]\n property_id = property_map[cell_index]\n
if cell is not None and cell.strip()==\'\':\n
# empty string is NOT a valid identifier\n
cell=None\n
line_data[property_id] = cell\n line_data[property_id] = cell\n
if cell and property_id.startswith(\'path_\'):\n if cell and property_id.startswith(\'path_\'):\n
path_defined.append(cell)\n path_defined.append(cell)\n
......
1555 1556
\ 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