Issue 16953 - Errors in Python "Hello World" sample
Summary: Errors in Python "Hello World" sample
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: documentation (show other issues)
Version: OOo 1.1 RC
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joergbudi
QA Contact: issues@www
URL: http://udk.openoffice.org/python/pyth...
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-16 14:27 UTC by davidfraser
Modified: 2007-06-18 10:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description davidfraser 2003-07-16 14:27:15 UTC
The first Hello World sample on the URL given (for running from outside of Open
Office) has two errors in it.
1) refers to remoteContext, which is undefined. Changing to localContext fixed it
# get the central desktop object
desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop",remoteContext)
2) refers to doc, which is undefined. Changing to model fixed it.
# access the document's text property
text = doc.Text
Comment 1 joergbudi 2003-07-16 22:05:08 UTC
that's mine.
Comment 2 joergbudi 2003-07-16 22:10:22 UTC
fixed now.
Comment 3 kay.ramme 2007-06-18 10:30:21 UTC
This issue has been "RESOLVED" for quite a time, I assume I can close it ...