Hello,<div><br></div><div>I've tried to follow your steps but placing the code in wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been able to build it successfully. It complains and says: ERROR: File not found: CallWizard.py</div>
<div><br></div><div>I attach a file with the changes I've done.</div><div><br></div><div>Greetings</div><div><br><div class="gmail_quote">2011/8/17 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 class="im">On Wed, 2011-08-17 at 09:06 +0100, Caolán McNamara wrote:<br>
> I imagine that if you basically opengrok for mailmerge.py and<br>
> mailmerge.component and follow the same pattern for your one that it'll<br>
> get you a lot closer.<br>
<br>
</div>Seeing as this is a bit tricky to get up and running, attached is a<br>
rough-and-ready patch to turn wizards->letter into "hello world" in<br>
python.<br>
<br>
i.e.<br>
<br>
a) add a "hello_world.component" (which gets run through the usual xslt<br>
script via the local <a href="http://makefile.mk" target="_blank">makefile.mk</a> to tweak it to give the right location<br>
where the .py will finally get installed) that describes a<br>
hello_world.py component. The .component has the implementation name,<br>
e.g. org.openoffice.comp.pyuno.demo.HelloWorld in it and the services it<br>
implements, e.g. com.sun.star.task.Job<br>
<br>
b) I added a hello_world.py that implements that, see its<br>
g_ImplementationHelper.addImplementation for the matching implementation<br>
name and services<br>
<br>
c) add that hello_world.component to "postprocess" where it will be<br>
basically added as an entry into the services.rdb in the final install<br>
sets install/program/services.rdb (which is an xml file these days. That<br>
should end up having "<component loader="com.sun.star.loader.Python"<br>
uri="vnd.openoffice.pymodule:hello_world"><implementation<br>
name="org.openoffice.comp.pyuno.demo.HelloWorld"><service<br>
name="com.sun.star.task.Job"/></implementation></component></components>" in it).<br>
<br>
d) change the wizards->letter line in officecfg to call it<br>
<br>
e) modify scp2 to install it<br>
<br>
f) I haven't a clue what the entry in instsetoo_native does anymore, I<br>
think I used to know :-)<br>
<br>
hope this helps.<br>
<font color="#888888"><br>
C.<br>
</font></blockquote></div><br></div>