Changeset 4880 for waeup/trunk/src


Ignore:
Timestamp:
23 Jan 2010, 08:34:56 (15 years ago)
Author:
uli
Message:

Reflect new return values from doImport(): instead of all warning texts we get
only number of warnings.

File:
1 edited

Legend:

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

    r4875 r4880  
    569569        self.fullpath = os.path.join(self.context.storage, self.filename)
    570570        self.importer = getUtility(IBatchProcessor, name=self.importername)
    571         (linenum, warnings) = self.importer.doImport(
     571        (linenum, self.warn_num) = self.importer.doImport(
    572572            self.fullpath, self.headerfields, self.mode,
    573573            self.request.principal.id)
    574         self.warn_num = len(warnings)
    575574        if self.warn_num:
    576575            self.flash('Processing of %d rows failed!' % self.warn_num)
Note: See TracChangeset for help on using the changeset viewer.