Issue 115703 - Silent error in python scripting engine
Summary: Silent error in python scripting engine
Status: UNCONFIRMED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 3.3 RC3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2010-11-21 16:00 UTC by bmarcelly
Modified: 2014-03-04 11:18 UTC (History)
2 users (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 bmarcelly 2010-11-21 16:00:24 UTC
1) Create in OOo user data a sub-folder /Scripts/python/

2) Modify pythonscript.py to enable the logging of errors:
# Configuration ----------------------------------------------------
#LogLevel.use = LogLevel.NONE                # production level
LogLevel.use = LogLevel.ERROR               # for script developers
#LogLevel.use = LogLevel.DEBUG               # for script framework developers
LOG_STDOUT = False                           # True, writes to stdout (difficult
on windows)
                                            # False, writes to
user/Scripts/python/log.txt

3) Open OpenOffice.org.
   Menu Tools > Macros > Execute macro
   Then click then Cancel button

4) Look at the file log.txt in user folder /Scripts/python/
You will see an error message like this one:

Sun Nov 21 16:52:42 2010 [ERROR] DirBrowseNode error: Unable to create Content!
 while evaluating vnd.sun.star.tdoc:/1/Scripts/python
Sun Nov 21 16:52:42 2010 [ERROR] <class
'pythonscript.com.sun.star.ucb.ContentCreationException'>: Unable to create
Content! 
  C:\Program Files\OpenOffice.org 3\Basis\program\pythonscript.py:579 in
function getChildNodes() [contents = self.provCtx.sfa.getFolderContents(
self.rootUrl, True )]

This does not prevent scripts to run, but it is very disturbing when you are
debugging your own scripts.
Comment 1 ab 2010-11-30 10:40:48 UTC
ab->jbu: Please have a look
Comment 2 Rob Weir 2013-07-30 02:44:50 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.