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 ...@@ -60,12 +60,18 @@ style = request.get(\'your_portal_skin\',\n
\n \n
item_list = [(\'\', \'\')]\n item_list = [(\'\', \'\')]\n
\n \n
if style == \'ODS\':\n from Products.ERP5.Document.Document import ConversionError\n
return context.Base_getConversionFormatItemList(\n \n
base_content_type=\'application/vnd.oasis.opendocument.spreadsheet\')\n try:\n
elif style == \'ODT\':\n if style == \'ODS\':\n
return context.Base_getConversionFormatItemList(\n return context.Base_getConversionFormatItemList(\n
base_content_type=\'application/vnd.oasis.opendocument.text\')\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 \n
return item_list\n return item_list\n
</string> </value> </string> </value>
...@@ -112,6 +118,8 @@ return item_list\n ...@@ -112,6 +118,8 @@ return item_list\n
<string>request</string> <string>request</string>
<string>style</string> <string>style</string>
<string>item_list</string> <string>item_list</string>
<string>Products.ERP5.Document.Document</string>
<string>ConversionError</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-11-08 nicolas.dumazet
* Allow changing preferences even if OOo server is not running
2010-11-04 nicolas.dumazet 2010-11-04 nicolas.dumazet
* provide field in BaseType_view to set up interfaces on portal type classes * provide field in BaseType_view to set up interfaces on portal type classes
......
1777 1778
\ No newline at end of file \ 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