Show
Ignore:
Timestamp:
12/09/07 15:26:15 (17 years ago)
Author:
jerome
Message:

Each parser now has a 'format' attribute containing its short name.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pdlparser.py

    r529 r555  
    4343    required = []               # Default list of required commands 
    4444    openmode = "rb"             # Default file opening mode 
     45    format = "Unknown"          # Default file format 
    4546    def __init__(self, parent, filename, (firstblock, lastblock)) : 
    4647        """Initialize the generic parser.""" 
     
    5455        if not self.isValid() : 
    5556            raise PDLParserError, "Invalid file format !" 
     57        else :     
     58            self.logdebug("Input file is in the '%s' file format." % self.format) 
    5659        try : 
    5760            import psyco