Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-12-20 12:37:50 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-12-20 12:37:50 (GMT)
commitdeb92aa756b61fd759897132f2c382e4c1faf790 (patch)
tree5798d958e96e03c4cd09ec6801502e14ae1e1bf1
parentab4c839d0955e0b0f093da8b456f5b72cfe8f041 (diff)
Disable saving the content as text if abi version == 3.0 (exports)
This is because of http://bugzilla.abisource.com/show_bug.cgi?id=13585 and should be reverted when is fixed Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--widgets.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets.py b/widgets.py
index 55bd511..35b95cc 100644
--- a/widgets.py
+++ b/widgets.py
@@ -166,8 +166,10 @@ 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('text/plain', None)[:3000]
+ # due to http://bugzilla.abisource.com/show_bug.cgi?id=13585
+ if abi.get_version() != '3.0':
+ fileObject.metadata['fulltext'] = abi.get_content('text/plain',
+ None)[:3000]
fileObject.metadata['icon-color'] = act_meta['icon-color']