Commit 4815fa48 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use ODS instead of SXC for the temporary object in importing a spreadsheet.

export to SXC is no longer supported in LibreOffice 4.2.4.
parent 2eaff72b
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts47455675.31</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>openoffice-erp5-objects-template.sxc</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/vnd.sun.xml.calc</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">UEsDBBQAAAAAAABjrDRFvBOUHAAAABwAAAAIAAAAbWltZXR5cGVhcHBsaWNhdGlvbi92bmQuc3Vu
LnhtbC5jYWxjUEsDBBQACAAIAABjrDQAAAAAAAAAAAAAAAALAAAAY29udGVudC54bWy1WN9z2jgQ
fr+/wqfO3JsRvy5NOKDTlKTTOZpkpknn+ihkAZrYkkeSQ+hff2vJNobYJgTCgzOWvv322/Xuys7w
03MUek9MaS7FCHVabeQxQWXAxWKEHu6v/XP0afzH8M/J7Zf7X3dXnpzPOWWDQNIkYsL4VAoDf727
h8vpty8e8jG+jZm4tbCWVAuMJ/cTz91PMisP/GB8dYM85PhagQnQeFhHDhqFHrjdEVoaEw8wluBG
btx02+02dvcoM9BmHTbjLSKHG/ZsGtEpoACT2R5ui8jhgSKrRnQKgJzn+Lks0KvVqrXqWWTn4uIC
//djiq+likih5Tnk4rEWb3dzqEiiGVPNSoghW3nRT4sqcpfAp0IyXRLVnD+L2GSkF+zJSC/IwRDs
sibAc/wdNu3l+3STPhU1kqeAIj6qeNys3EFQXv00JFqPkI4VI4FeMrbZ2mqloqKdPS7u51DYfsBo
qMdDm+vNiufuBYm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oxXFrj8i5lUuvqa6YCPuv0HA9BTXXEPAb80QyvrrNYMTc7dGdMF3
s/+SJCucigIkZqnRhiKy3I//ElOtZcRjRxnIrjNaSQ6/xrOtYz/YOAyNlTQK5pZmMCbqJJ8yQMCH
JtxXSq146Mk/qjFdGEPA+6pylkPz3w8WdT2PhvzibEssl89KzGFpr2lTvFmrzS9QSwcIU8sTU/wA
AADuAgAAUEsBAhQAFAAAAAAAAGOsNEW8E5QcAAAAHAAAAAgAAAAAAAAAAAAAAAAAAAAAAG1pbWV0
eXBlUEsBAhQAFAAIAAgAAGOsNGR7c6reAwAAoRIAAAsAAAAAAAAAAAAAAAAAQgAAAGNvbnRlbnQu
eG1sUEsBAhQAFAAIAAgAAGOsNLbkzJlMBQAAOBcAAAoAAAAAAAAAAAAAAAAAWQQAAHN0eWxlcy54
bWxQSwECFAAUAAAAAAAAY6w0Jsn7/ekDAADpAwAACAAAAAAAAAAAAAAAAADdCQAAbWV0YS54bWxQ
SwECFAAUAAgACAAAY6w0DdMvt48FAAAGHgAADAAAAAAAAAAAAAAAAADsDQAAc2V0dGluZ3MueG1s
UEsBAhQAFAAIAAgAAGOsNFPLE1P8AAAA7gIAABUAAAAAAAAAAAAAAAAAtRMAAE1FVEEtSU5GL21h
bmlmZXN0LnhtbFBLBQYAAAAABgAGAFoBAAD0FAAAAAA=</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <long>5732</long> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
1063
1064
\ No newline at end of file
......@@ -72,7 +72,7 @@ def getSpreadsheet(file):\n
tmp_ooo = newTempOOoDocument(context, file.filename)\n
tmp_ooo.edit(data=file.read(), content_type=content_type)\n
tmp_ooo.convertToBaseFormat()\n
ignored, import_file_content = tmp_ooo.convert(\'sxc\')\n
ignored, import_file_content = tmp_ooo.convert(\'ods\')\n
ooo_parser.openFromString(str(import_file_content))\n
else:\n
ooo_parser.openFile(file)\n
......
......@@ -219,7 +219,7 @@
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
You can find an OpenOffice template at <a href="openoffice-erp5-objects-template.sxc">openoffice-erp5-objects-template.sxc</a>
You can find an OpenOffice template at <a href="openoffice-erp5-objects-template.ods">openoffice-erp5-objects-template.ods</a>
]]></string> </value>
</item>
......
415
\ No newline at end of file
416
\ No newline at end of file
......@@ -142,7 +142,7 @@ if not (content_type.startswith(\'application/vnd.sun.xml\')\n
tmp_ooo.edit(data=import_file.read(),\n
content_type=content_type)\n
tmp_ooo.convertToBaseFormat()\n
ignored, import_file_content = tmp_ooo.convert(\'sxc\')\n
ignored, import_file_content = tmp_ooo.convert(\'ods\')\n
parser.openFromString(str(import_file_content))\n
else:\n
parser.openFile(import_file)\n
......
......@@ -211,7 +211,7 @@
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
<ul><li>An OpenOffice file is available at <a href="portal_skins/erp5_core/erp5_import_category_tree_examples.sxc">/portal_skins/erp5_core/erp5_import_category_tree_examples.sxc</a> . It contain different examples of how to input a tree of categories. Each sheet title will be used as Base Category.</li><li>Rename every tab of the spreadsheet with the ID of the corresponding base category ID (ex. group).</li><li>Do not merge cells in the uploaded spreadsheet: this will confuse the parser and produce unpredictible results.</li><li><b>Do not use category IDs which are defined in Property Sheets as property</b>. ERP5 is not able to make the difference between a subobject ID and a property ID.</li><li>Even if this tool was designed to import OpenOffice v1.x documents, OASIS OpenDocument files seems to work as well.</li></ul>
<ul><li>An OpenOffice file is available at <a href="portal_skins/erp5_core/erp5_import_category_tree_examples.ods">/portal_skins/erp5_core/erp5_import_category_tree_examples.ods</a> . It contain different examples of how to input a tree of categories. Each sheet title will be used as Base Category.</li><li>Rename every tab of the spreadsheet with the ID of the corresponding base category ID (ex. group).</li><li>Do not merge cells in the uploaded spreadsheet: this will confuse the parser and produce unpredictible results.</li><li><b>Do not use category IDs which are defined in Property Sheets as property</b>. ERP5 is not able to make the difference between a subobject ID and a property ID.</li><li>Even if this tool was designed to import OpenOffice v1.x documents, OASIS OpenDocument files seems to work as well.</li></ul>
]]></string> </value>
</item>
......
41162
\ No newline at end of file
41163
\ 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