Changeset 2567

Show
Ignore:
Timestamp:
10/21/05 14:39:23 (19 years ago)
Author:
jerome
Message:

Now the data dumper refuse to dump into the cups format if the datatype
is not 'history'.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/dumper.py

    r2536 r2567  
    9191                     
    9292        format = options["format"] 
    93         if format not in self.validformats.keys() \ 
    94            or ((format == "cups") and (datatype == "history") and options["sum"]) : 
     93        if (format not in self.validformats.keys()) \ 
     94           or ((format == "cups") \ 
     95              and ((datatype != "history") or options["sum"])) : 
    9596            raise PyKotaCommandLineError, _("Invalid modifier [%s] for --format command line option, see help.") % format 
    9697