Thank you for pointing out this file but I don't really understand how it works.<div>The wizard is called here : <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu#441">http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu#441</a> where MailMergeWizard is the service register in Writer.xcu ( <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/Writer.xcu#30">http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/Writer.xcu#30</a> ) but then how libo knows that this service refers to mailmerge.py ?</div>
<div><br></div><div>Greetings<br><meta http-equiv="content-type" content="text/html; charset=utf-8"><br><div class="gmail_quote">2011/8/16 Caolán McNamara <span dir="ltr"><<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Mon, 2011-08-15 at 19:02 +0200, Xisco Faulí wrote:<br>
> Hello everybody,<br>
><br>
><br>
> before I merge the gsoc branch into master I'd like to integrate the<br>
> python code into libo and get rid of the java code.<br>
> I know i have to edit this file<br>
> <a href="http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/Common.xcu" target="_blank">http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/Common.xcu</a> but i can't figure out how to call the python code. I've tried to call this file <a href="http://opengrok.libreoffice.org/xref/core/pyuno/demo/hello_world_comp.py" target="_blank">http://opengrok.libreoffice.org/xref/core/pyuno/demo/hello_world_comp.py</a> using this value: <value>service:org.openoffice.comp.pyuno.demo.HelloWorld?insert</value> but it doesn't work. Any idea ?<br>
<br>
</div></div>Perhaps hello_world_comp.py isn't registered as a service ?<br>
<br>
Did you look at how the mailmerge.py example is installed ?, i.e.<br>
<a href="http://opengrok.libreoffice.org/search?q=mailmerge.py" target="_blank">http://opengrok.libreoffice.org/search?q=mailmerge.py</a> for a python<br>
component which is bundled into LibreOffice.<br>
<br>
You may have to do pretty much the same thing for it be available via<br>
service:...?foo out-of-the-box. There's some preamble at the top of<br>
mailmerge.py about how to manually register that component for testing<br>
purposes, which is probably the archaic way to do it these-days, but<br>
probably still works.<br>
<font color="#888888"><br>
C.<br>
<br>
<br>
<br>
</font></blockquote></div><br></div>