Changeset 387 for pkpgcounter/trunk/pkpgpdls/ooo.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/ooo.py
r357 r387 32 32 """A parser for OpenOffice.org documents.""" 33 33 def isValid(self) : 34 """Returns 1 if data is DVI, else 0."""34 """Returns True if data is OpenDocument, else False.""" 35 35 if self.firstblock[:2] == "PK" : 36 36 try : … … 39 39 self.metaxml = self.archive.read("meta.xml") 40 40 except : 41 return 041 return False 42 42 else : 43 self.logdebug("DEBUG: Input file is in the Open Office.orgformat.")44 return 143 self.logdebug("DEBUG: Input file is in the OpenDocument (ISO/IEC DIS 26300) format.") 44 return True 45 45 else : 46 return 046 return False 47 47 48 48 def getJobSize(self) :