Page 1 of 1

[Solved] Packaging as .zip vs .oxt

Posted: Wed Aug 01, 2012 1:19 am
by saleem145
Hello,

I have a simple Addon -- just one python file and one xcu file. When I zip the two and produce a .zip file I am able to call the macro embedded in the python code. However, if I rename the same file as an .oxt the macro no longer seems to work. Any ideas?? I tried including a manifest file with no luck.

Saleem

XCU is below...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             oor:name="Addons" oor:package="org.openoffice.Office">
</oor:component-data>

Re: .zip vs .oxt

Posted: Wed Aug 01, 2012 1:44 am
by saleem145
It seems with an oxt a manifest file is needed. Adding two entries

<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python"
manifest:full-path="MakeChart.py"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="Addons.xcu"/>

seem to have done the job. But no manifest file is needed with a zip.

Saleem