Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-10-24 19:21:16 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-10-24 19:21:16 (GMT)
commit36917252b0cb3fec9537c6adf02456636f6b72b7 (patch)
treec9fa3d19af97a4c75bc4c56d8c31b7aadb5b025d
parent2baeadd0ca55d4e6e9835ba70934e5f3c65becaf (diff)
Fix save 'fulltext' metadata when export.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets.py b/widgets.py
index a3b3709..b4c68f8 100644
--- a/widgets.py
+++ b/widgets.py
@@ -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']