Show
Ignore:
Timestamp:
12/09/07 15:26:15 (16 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/escp2.py

    r522 r555  
    2929class Parser(pdlparser.PDLParser) : 
    3030    """A parser for ESC/P2 documents.""" 
     31    format = "ESC/P2" 
    3132    def isValid(self) :         
    3233        """Returns True if data is ESC/P2, else False.""" 
     
    3536           self.firstblock.startswith("\n\033@") or \ 
    3637           self.firstblock.startswith("\0\0\0\033\1@EJL") : # ESC/P Raster ??? Seen on Stylus Photo 1284 
    37             self.logdebug("DEBUG: Input file is in the ESC/P2 format.") 
    3838            return True 
    3939        else :