[Libreoffice] Mac - Python scripts not visible / executable in Macros manager

Christian Lohmaier lohmaier+libreoffice at googlemail.com
Sat Feb 26 07:45:20 PST 2011


On Sat, Feb 26, 2011 at 3:11 PM, Christian Lohmaier
<lohmaier+libreoffice at googlemail.com> wrote:
> Hi Alexander, *,
>
> On Fri, Feb 25, 2011 at 8:59 AM, Alexander Thurgood
> <alex.thurgood at gmail.com> wrote:
>>
>> Despite the scripts being physically present within the app bundle, the
>> python scripts Capitalise and pythonSamples are not visible, or
>> executable via the application GUI - stock LibO 3.3.1 final on MacOSX
>> 10.6.6. Any idea why ?
>
> confirming on PPC (10.4) - the HelloWorld one is present and working though.
>
> And the module pythonSamples→TableSample is also visible in the tree,
> but it is empty.
> Capitalize also exists, but only the beanshell one is listed.
>
> Looking at the files I found the cause, the
>  g_exportedScripts
> isn't working correctly, it hides all methods.

I don't see what's wrong - python people around?
this is basis-link/program/pythonscript.py at around line 360:

                for assignee in node.nodes:
                    if assignee.name == 'g_exportedScripts':
                        print "found g_exportedScripts %s" % (node.expr)
                        for item in node.expr:
                            print "won't reach this on Mac"
                            if item.__class__.__name__ == 'Name':
                                g_exportedScripts.append(item.name)
                        print "and not even this point"
                        return g_exportedScripts


So what is wrong with "for item in node.expr:"?

ciao
Christian


More information about the LibreOffice mailing list