On Sat, Feb 26, 2011 at 3:11 PM, Christian Lohmaier <lohmaier+libreoff...@googlemail.com> wrote: > Hi Alexander, *, > > On Fri, Feb 25, 2011 at 8:59 AM, Alexander Thurgood > <alex.thurg...@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 _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice