To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82156
                 Issue #|82156
                 Summary|Using SpellChecker service from Python crashes OOo
               Component|udk
                 Version|OOo 2.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jbu
             Reported by|finnglarsen





------- Additional comments from [EMAIL PROTECTED] Mon Oct  1 20:37:57 +0000 
2007 -------
Apparently is not possible to use the SpellChecker service from Python. The
following Python code makes OOo crash:

import uno
currentContext = XSCRIPTCONTEXT.getComponentContext()
smgr = currentContext.ServiceManager
spellchecker = \
smgr.createInstanceWithContext("com.sun.star.linguistic2.SpellChecker", \
currentContext)
locale = uno.getClass("com.sun.star.lang.Locale")
locale.Language = "da"
locale.Country = "DK"
spellcheckResult =  spellchecker.isValid("word", locale, ())

---------------------------------------------------------------------
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]

Reply via email to