diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-12-20 12:37:50 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-12-20 12:37:50 (GMT) |
commit | deb92aa756b61fd759897132f2c382e4c1faf790 (patch) | |
tree | 5798d958e96e03c4cd09ec6801502e14ae1e1bf1 | |
parent | ab4c839d0955e0b0f093da8b456f5b72cfe8f041 (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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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'] |