Show
Ignore:
Timestamp:
04/24/05 18:16:22 (19 years ago)
Author:
jerome
Message:

The data dumper now supports filtering by hostname
or billing code.

Files:
1 modified

Legend:

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

    r2217 r2218  
    6161                        "printername", 
    6262                        "pgroupname", 
     63                        "hostname", 
     64                        "billingcode", 
    6365                      ] 
    6466    def main(self, arguments, options, restricted=1) : 
     
    7577                        raise ValueError                 
    7678                except ValueError :     
    77                     raise PyKotaToolError, _("Invalid value [%s] for --filter command line option, see help.") % filterexp 
     79                    raise PyKotaToolError, _("Invalid filter value [%s], see help.") % filterexp 
    7880                else :     
    7981                    extractonly.update({ filterkey : filtervalue }) 
     
    9193            raise PyKotaToolError, _("XML output is disabled because the jaxml module is not available.") 
    9294             
    93         entries = getattr(self.storage, "extract%s" % datatype.title())(extractonly)     
     95        entries = getattr(self.storage, "extract%s" % datatype.title())(extractonly) 
    9496        if entries : 
    9597            mustclose = 0