Changeset 4898 for waeup/trunk/src


Ignore:
Timestamp:
27 Jan 2010, 11:40:43 (15 years ago)
Author:
uli
Message:

Use new datacenter functionality to distribute files.

File:
1 edited

Legend:

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

    r4887 r4898  
    569569        self.fullpath = os.path.join(self.context.storage, self.filename)
    570570        self.importer = getUtility(IBatchProcessor, name=self.importername)
    571         (linenum, self.warn_num) = self.importer.doImport(
     571
     572        # Perform batch processing...
     573        # XXX: This might be better placed in datacenter module.
     574        (linenum, self.warn_num,
     575         fin_path, pending_path) = self.importer.doImport(
    572576            self.fullpath, self.headerfields, self.mode,
    573577            self.request.principal.id, logger=self.context.logger)
     578        # Put result files in desired locations...
     579        self.context.distProcessedFiles(
     580            self.warn_num == 0, self.fullpath, fin_path, pending_path)
     581
    574582        if self.warn_num:
    575583            self.flash('Processing of %d rows failed!' % self.warn_num)
Note: See TracChangeset for help on using the changeset viewer.