diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-10-24 19:21:16 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-10-24 19:21:16 (GMT) |
commit | 36917252b0cb3fec9537c6adf02456636f6b72b7 (patch) | |
tree | c9fa3d19af97a4c75bc4c56d8c31b7aadb5b025d | |
parent | 2baeadd0ca55d4e6e9835ba70934e5f3c65becaf (diff) |
Fix save 'fulltext' metadata when export.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -219,8 +219,8 @@ class ExportButtonFactory(): fileObject.metadata['title_set_by_user'] = \ act_meta['title_set_by_user'] fileObject.metadata['mime_type'] = format['mime_type'] - fileObject.metadata['fulltext'] = abi.get_content( - extension_or_mimetype=".txt")[:3000] + fileObject.metadata['fulltext'] = \ + abi.get_content('text/plain', None)[:3000] fileObject.metadata['icon-color'] = act_meta['icon-color'] |