- Timestamp:
- 8 Aug 2012, 22:56:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/batching.py
r9091 r9093 38 38 from waeup.kofa.interfaces import ( 39 39 IBatchProcessor, FatalCSVError, IObjectConverter, IJobManager, 40 ICSVExporter, IGNORE_MARKER, DuplicationError, JOB_STATUS_MAP) 40 ICSVExporter, IGNORE_MARKER, DuplicationError, JOB_STATUS_MAP, 41 IExportJobContainer) 41 42 42 43 class BatchProcessor(grok.GlobalUtility): … … 546 547 """A mix-in that provides functionality for asynchronous export jobs. 547 548 """ 549 grok.implements(IExportJobContainer) 548 550 running_exports = PersistentList() 549 551 … … 564 566 job = AsyncExportJob(site, exporter_name) 565 567 job_id = manager.put(job) 566 self.running_exports.append((job_id, exporter_name, user_id))567 568 # Make sure that the persisted list is stored in ZODB 568 569 self.running_exports = PersistentList(self.running_exports) 570 self.running_exports.append((job_id, exporter_name, user_id)) 569 571 return job_id 570 572
Note: See TracChangeset for help on using the changeset viewer.