Ignore:
Timestamp:
8 Aug 2012, 14:07:26 (12 years ago)
Author:
uli
Message:

Add docs.

File:
1 edited

Legend:

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

    r9089 r9091  
    520520
    521521class AsyncExportJob(AsyncJob):
    522 
     522    """An IJob that exports data to CSV files.
     523
     524    `AsyncExportJob` instances are regular `AsyncJob` instances with a
     525    different constructor API. Instead of a callable to execute, you
     526    must pass a `site` and some `exporter_name` to trigger an export.
     527
     528    The real work is done when an instance of this class is put into a
     529    queue. See :mod:`waeup.kofa.async` to learn more about
     530    asynchronous jobs.
     531
     532    The `exporter_name` must be the name under which an ICSVExporter
     533    utility was registered with the ZCA.
     534
     535    The `site` must be a valid site  or ``None``.
     536
     537    The result of an `AsyncExportJob` is the path to generated CSV
     538    file. The file will reside in a temporary directory that should be
     539    removed after being used.
     540    """
    523541    def __init__(self, site, exporter_name):
    524542        super(AsyncExportJob, self).__init__(
Note: See TracChangeset for help on using the changeset viewer.