Ignore:
Timestamp:
20 Oct 2012, 15:50:12 (12 years ago)
Author:
Henrik Bettermann
Message:

Do it right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r9368 r9369  
    13461346        # If the import file contains only one column
    13471347        # the import_headerfields attribute is a string.
    1348         self.headerfields = []
    1349         self.headerfields.append(session.get('import_headerfields', None))
     1348        ihf = session.get('import_headerfields', None)
     1349        if not isinstance(ihf, list):
     1350            self.headerfields = ihf.split()
     1351        else:
     1352            self.headerfields = ihf
    13501353
    13511354        if None in (self.filename, self.mode, self.importername,
Note: See TracChangeset for help on using the changeset viewer.