Changeset 8218 for main


Ignore:
Timestamp:
19 Apr 2012, 14:15:51 (13 years ago)
Author:
uli
Message:

BatchProcessors? apparently make no use of any mode attribute. But they
might have use for an explicit hint whether to handle empty fields as
ones to ignore (if people are not able or too lazy to set IGNORE
markers manually).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r8214 r8218  
    328328        )
    329329
    330     mode = schema.Choice(
    331         title = _(u'Import Mode'),
    332         values = ['create', 'update', 'remove']
    333         )
    334 
    335330    def doImport(path, headerfields, mode='create', user='Unknown',
    336                  logger=None):
     331                 logger=None, ignore_empty=True):
    337332        """Read data from ``path`` and update connected object.
    338333
     
    347342
    348343        `logger` is the logger to use during import.
     344
     345        `ignore_emtpy` in update mode ignores empty fields if true.
    349346        """
    350347
Note: See TracChangeset for help on using the changeset viewer.