Thank you for pointing out this file but I don&#39;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">&lt;<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>&gt;</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>
&gt; Hello everybody,<br>
&gt;<br>
&gt;<br>
&gt; before I merge the gsoc branch into master I&#39;d like to integrate the<br>
&gt; python code into libo and get rid of the java code.<br>
&gt; I know i have to edit this file<br>
&gt; <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&#39;t figure out how to call the python code.  I&#39;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: &lt;value&gt;service:org.openoffice.comp.pyuno.demo.HelloWorld?insert&lt;/value&gt; but it doesn&#39;t work. Any idea ?<br>

<br>
</div></div>Perhaps hello_world_comp.py isn&#39;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&#39;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>