Ignore:
Timestamp:
21 Feb 2022, 06:21:10 (3 years ago)
Author:
Henrik Bettermann
Message:

Don't complain but remove leading and trailing whitespaces while converting values during import.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

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

    r16538 r16818  
    15101510            invalid_line = check_csv_charset(filecontent.splitlines())
    15111511            if invalid_line:
    1512                 if invalid_line == -1:
    1513                     self.flash(_(
    1514                         "The data in your file contain trailing whitespaces. "
    1515                         "Please replace."), type='danger')
    1516                 else:
    1517                     self.flash(_(
    1518                         "Your file contains forbidden characters or "
    1519                         "has invalid CSV format. "
    1520                         "First problematic line detected: line %s. "
    1521                         "Please replace." % invalid_line), type='danger')
     1512                self.flash(_(
     1513                    "Your file contains forbidden characters or "
     1514                    "has invalid CSV format. "
     1515                    "First problematic line detected: line %s. "
     1516                    "Please replace." % invalid_line), type='danger')
    15221517                logger.info('%s - invalid file uploaded: %s' %
    15231518                            (ob_class, target))
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py

    r16187 r16818  
    204204        return
    205205
    206     def test_forbidden_file_upload_2(self):
     206    def deprecated_test_forbidden_file_upload_2(self):
    207207        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    208208        self.browser.open(self.datacenter_path)
Note: See TracChangeset for help on using the changeset viewer.