From deb92aa756b61fd759897132f2c382e4c1faf790 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 20 Dec 2013 12:37:50 +0000 Subject: 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 --- 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'] -- cgit v0.9.1