To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93812
                 Issue #|93812
                 Summary|Python error message is misleading
               Component|scripting
                 Version|OOo 2.4.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|bmarcelly





------- Additional comments from [EMAIL PROTECTED] Fri Sep 12 08:30:36 +0000 
2008 -------
In python scripts, call to functions and methods must have parentheses even if 
there 
is no argument.
This should be known by python programmers, but when you switch among languages 
such 
syntax errors are common. Problem is that python produces a message without 
relation 
to the real error.

Next attachment is a script example (7 lines)

Log file (on MS-Windows XP) says:
Fri Sep 12 10:10:43 2008 [ERROR] 
pythonscript.com.sun.star.ucb.ContentCreationException: Unable to create 
Content!
  C:\Program Files\OpenOffice.org 2.4\program\pythonscript.py:492 in function 
getChildNodes() [contents = self.provCtx.sfa.getFolderContents( self.rootUrl, 
True )]

The error message is no more explicit, see second attachment. The line in error 
in 
the script is not even provided.
I consider this a defect, not an enhancement, because you cannot really develop 
in 
python with such poor messages.

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