diff options
| author | jvoisin | 2011-07-26 04:55:59 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-26 04:55:59 +0200 |
| commit | f6e3d57173604dab7228c830e84415ead02e169b (patch) | |
| tree | c38b5e2f09b6aebff79a6786ce8d26d05c7c5845 /lib/office.py | |
| parent | 342cbf4bd69e638f62319ea0e6660af5dc717131 (diff) | |
Tests are green for opendocument format
Diffstat (limited to 'lib/office.py')
| -rw-r--r-- | lib/office.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/office.py b/lib/office.py index b7fa555..27677d2 100644 --- a/lib/office.py +++ b/lib/office.py | |||
| @@ -34,7 +34,6 @@ class OpenDocumentStripper(archive.GenericArchiveStripper): | |||
| 34 | metadata[key] = node.text | 34 | metadata[key] = node.text |
| 35 | except KeyError:#no meta.xml file found | 35 | except KeyError:#no meta.xml file found |
| 36 | logging.debug('%s has no opendocument metadata' % self.filename) | 36 | logging.debug('%s has no opendocument metadata' % self.filename) |
| 37 | metadata[self.filename] = '' | ||
| 38 | return metadata | 37 | return metadata |
| 39 | 38 | ||
| 40 | 39 | ||
| @@ -76,7 +75,7 @@ class OpenDocumentStripper(archive.GenericArchiveStripper): | |||
| 76 | except: | 75 | except: |
| 77 | logging.info('%s\' fileformat is not supported' % item) | 76 | logging.info('%s\' fileformat is not supported' % item) |
| 78 | if self.add2archive: | 77 | if self.add2archive: |
| 79 | zipout.write(item, name) | 78 | zipout.write(name, item) |
| 80 | mat.secure_remove(name) | 79 | mat.secure_remove(name) |
| 81 | zipout.comment = '' | 80 | zipout.comment = '' |
| 82 | logging.info('%s treated' % self.filename) | 81 | logging.info('%s treated' % self.filename) |
