[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#616011: no mediawiki exporter



Hi,

> Now I tried to replace "fuse" with "replace" for a test, and reregistering
> the thing:
> 
> mv /usr/lib/libreoffice/share/extensions/wiki-publisher /
> /var/lib/dpkg/info/libreoffice-common.postinst triggered
> /usr/lib/libreoffice/share/extensions
> mv /wiki-publisher/ /usr/lib/libreoffice/share/extensions/
> $EDITOR /usr/lib/libreoffice/share/extensions/wiki-publisher/Filter.xcu
> /var/lib/dpkg/info/libreoffice-common.postinst triggered
> /usr/lib/libreoffice/share/extensions
> 
> ... and guess what ?  it just worked :)
> Now the export filter is selectable in the export dialog, and "send to"
> finds it as well...
> 
> So one question remains, what was this "fuse" supposed to do ?

11:01 < _rene__> sberg: what is the difference between oor:op="fuse" and 
                 oor:op="replace"? (cf. http://bugs.debian.org/616011)
[...]
11:10 <@sberg> _rene__, see 
<http://web.archive.org/web/20101103025920/http://util.openoffice.org/common/configuration/oor-document-format.html>
11:11 < _rene__> thanks

--- snip ---
Operation 'replace':
This operation can only be applied to dynamic elements, i.e. sub-nodes of a set or dynamic properties added to extensible nodes. It indicates that a corresponding element from the default tree, if present, should be ignored. Instead the element should be constructed as if the current layer were the first after the schema. Thus replace nodes are only combined with settings from the component schema. A replaced node in a set is based on a template and contains only modifications relative to the default tree fragment created from the template. During the merge process a corresponding node in the default tree is discarded, a new tree is created from the template and the contents of the update node is applied to this clean tree.

The replace operation does not require that a corresponding node to be replaced is available. It also must be used to add a new node to a set or extensible node. Thus the real meaning of the operation is “add or replace”. Dynamic properties can only be added once and are then considered mandatory, so during layer merging the replace operation always means “add” for them,

Operation ‘fuse’ (introduced in OOo 2.0.2):
This operation has a meaning of “modify or replace.” It has the same effect as modify (“merge with existing data”) if the element already exists, but it has the effect of replace (“add, possibly based on template”) if the element does not yet exist.
--- snip ---

Whatever that wants to say us ;-) "modify" if the element already exists sounds like what we want, but if "replace" works and "fuse" not I'd change that ;-)

Regards,

Rene



Reply to: