collective / collective.importexport

Provides a user action to do bulk metadata import and export on Plone content via CSV files.
2 stars 6 forks source link

Support multiline text #8

Open mtrebron opened 7 years ago

mtrebron commented 7 years ago

The following import results in a value without linefeeds:

id,product_highlights
gartenholzreiniger,"für alle Hölzer im Außenbereich
auch für Kunststoffmöbel
einfache Anwendung"

reader seems to be set incorrectly in import_view.py :

reader = csv.DictReader(data.splitlines(),
                            delimiter=",",
                            dialect="excel",
                            quotechar='"')

See https://docs.python.org/2/library/csv.html#csv.DictReader