[Libreoffice] fixing UNO pythonloader for load-by-package [was: candidate for a new python section in SDK] examples page

Lionel Elie Mamane lionel at mamane.lu
Mon Dec 12 13:23:11 PST 2011

On Thu, Dec 08, 2011 at 12:17:57PM +0100, Lionel Elie Mamane wrote:
> On Thu, Dec 08, 2011 at 10:00:24AM +0000, Michael Meeks wrote:

> I hacked pythonloader.py "in-place" so that it loads the fax wizard
> correctly; that should give you the idea of how to fix it correctly
> for the general case.

So, I found some free time to understand the overall system better and
fix it myself. I pushed the fix to master and libreoffice-3-5. But

>> The substantive change is:

>>   <component loader="com.sun.star.loader.Python"
>> 	     uri="vnd.openoffice.pymodule:wizards.fax">
>>     <implementation name="com.sun.star.wizards.fax.CallWizard">
>>       <service name="com.sun.star.wizards.fax.CallWizard"/>
>>     </implementation>
>>   </component>

You have to set in services.rdb:

<component loader="com.sun.star.loader.Python"
  <implementation name="com.sun.star.wizards.fax.CallWizard">
    <service name="com.sun.star.wizards.fax.CallWizard"/>

instead of what you wrote.

Happy hacking!


More information about the LibreOffice mailing list