Show
Ignore:
Timestamp:
11/28/07 11:13:33 (16 years ago)
Author:
jerome
Message:

Finally we need to duplicate some datas, since for some file formats (e.g. mstrash)
a preliminary conversion will have to be done (through wvware for example) and we
would need to overwrite original values, which is not desirable.

Files:
1 modified

Legend:

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

    r520 r522  
    8383    def isValid(self) :     
    8484        """Returns True if data is PCLXL aka PCL6, else False.""" 
    85         if (((self.parent.firstblock[:128].find("\033%-12345X") != -1) and \ 
    86              (self.parent.firstblock.find(" HP-PCL XL;") != -1) and \ 
    87              ((self.parent.firstblock.find("LANGUAGE=PCLXL") != -1) or \ 
    88               (self.parent.firstblock.find("LANGUAGE = PCLXL") != -1)))) \ 
    89              or ((self.parent.firstblock.startswith(chr(0xcd)+chr(0xca)) and (self.parent.firstblock.find(" HP-PCL XL;") != -1))) : 
     85        if (((self.firstblock[:128].find("\033%-12345X") != -1) and \ 
     86             (self.firstblock.find(" HP-PCL XL;") != -1) and \ 
     87             ((self.firstblock.find("LANGUAGE=PCLXL") != -1) or \ 
     88              (self.firstblock.find("LANGUAGE = PCLXL") != -1)))) \ 
     89             or ((self.firstblock.startswith(chr(0xcd)+chr(0xca)) and (self.firstblock.find(" HP-PCL XL;") != -1))) : 
    9090            self.logdebug("DEBUG: Input file is in the PCLXL (aka PCL6) format.") 
    9191            return True