Ignore:
Timestamp:
8 Aug 2012, 22:56:06 (12 years ago)
Author:
uli
Message:

Provide marker interface for export job containers.
Fix initial setting of added jobs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/batching.py

    r9091 r9093  
    3838from waeup.kofa.interfaces import (
    3939    IBatchProcessor, FatalCSVError, IObjectConverter, IJobManager,
    40     ICSVExporter, IGNORE_MARKER, DuplicationError, JOB_STATUS_MAP)
     40    ICSVExporter, IGNORE_MARKER, DuplicationError, JOB_STATUS_MAP,
     41    IExportJobContainer)
    4142
    4243class BatchProcessor(grok.GlobalUtility):
     
    546547    """A mix-in that provides functionality for asynchronous export jobs.
    547548    """
     549    grok.implements(IExportJobContainer)
    548550    running_exports = PersistentList()
    549551
     
    564566        job = AsyncExportJob(site, exporter_name)
    565567        job_id = manager.put(job)
    566         self.running_exports.append((job_id, exporter_name, user_id))
    567568        # Make sure that the persisted list is stored in ZODB
    568569        self.running_exports = PersistentList(self.running_exports)
     570        self.running_exports.append((job_id, exporter_name, user_id))
    569571        return job_id
    570572
Note: See TracChangeset for help on using the changeset viewer.