Allow JPK file versions up to 0.12 (unfinished).
authorW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 14:38:10 +0000 (10:38 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 14:38:10 +0000 (10:38 -0400)
hooke/driver/jpk.py

index 8ca521d80ee3d78fe275cffdef09c25b3a1a6cb6..bcacd85e288f8494b4fe48d285eb7a536ac459e5 100644 (file)
@@ -77,7 +77,8 @@ class JPKDriver (Driver):
             for i in range(len([p for p in f.namelist()
                                 if p.endswith('segment-header.properties')])):
                 segments.append(self._zip_segment(f, path, info, zip_info, i))
-        if zip_info['file-format-version'] not in ['0.3', '0.4', '0.5']:
+        if zip_info['file-format-version'] not in ['0.%d' % i
+                                                   for i in range(12)]:
             raise NotImplementedError(
                 'JPK file version %s not supported (yet).'
                 % zip_info['file-format-version'])