Commit 6f1002f0 authored by Nicolas Dumazet's avatar Nicolas Dumazet

2010-11-08 nicolas.dumazet

* Allow changing preferences even if OOo server is not running

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40007 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9fb7c0a
......@@ -60,12 +60,18 @@ style = request.get(\'your_portal_skin\',\n
\n
item_list = [(\'\', \'\')]\n
\n
if style == \'ODS\':\n
return context.Base_getConversionFormatItemList(\n
base_content_type=\'application/vnd.oasis.opendocument.spreadsheet\')\n
elif style == \'ODT\':\n
return context.Base_getConversionFormatItemList(\n
base_content_type=\'application/vnd.oasis.opendocument.text\')\n
from Products.ERP5.Document.Document import ConversionError\n
\n
try:\n
if style == \'ODS\':\n
return context.Base_getConversionFormatItemList(\n
base_content_type=\'application/vnd.oasis.opendocument.spreadsheet\')\n
elif style == \'ODT\':\n
return context.Base_getConversionFormatItemList(\n
base_content_type=\'application/vnd.oasis.opendocument.text\')\n
except ConversionError:\n
# OOo server not here, just return empty list\n
pass\n
\n
return item_list\n
</string> </value>
......@@ -112,6 +118,8 @@ return item_list\n
<string>request</string>
<string>style</string>
<string>item_list</string>
<string>Products.ERP5.Document.Document</string>
<string>ConversionError</string>
</tuple>
</value>
</item>
......
2010-11-08 nicolas.dumazet
* Allow changing preferences even if OOo server is not running
2010-11-04 nicolas.dumazet
* provide field in BaseType_view to set up interfaces on portal type classes
......
1777
\ No newline at end of file
1778
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment