To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=92661
------- Additional comments from [EMAIL PROTECTED] Wed Oct 1 17:07:47 +0000
2008 -------
This also occurs under:
Linux (CentOS 5.2)
Windows XP SP2
Windows Vista Ultimate
I've attempted putting similar scripts under the 'user' application data
directory (under user/Scripts/python) as well as the main application area, and
the scripts don't show up. Here is the script I'm using:
import unohelper
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation( \
None,"org.openoffice.script.DummyImplementationForPythonScripts", \
("org.openoffice.script.DummyServiceForPythonScripts",),)
def JoshHelloWorldPython( ):
"""Prints the string 'Hello World(in Python)' into the current document"""
#get the doc from the scripting context which is made available to all
scripts
model = XSCRIPTCONTEXT.getDocument()
text = model.Text
cursor = text.createTextCursor()
text.insertString( cursor, "Joshs Hello World(in Python)", 0 )
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]