https://bugs.documentfoundation.org/show_bug.cgi?id=125013

Buovjaga <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilmari.lauhakangas@libreoff
                   |                            |ice.org

--- Comment #14 from Buovjaga <[email protected]> ---
(In reply to Leif Lodahl from comment #13)
> I added two scripts to the bug.
> Ipsum.py is a Python module that returns a piece of text from the web with
> urlopen.
> TestAnything.py is a Python script for LibreOffice that calls the function
> in Ipsum.py and inserts the text in a Writer document.
> 
> It fails!

I get

com.sun.star.uno.RuntimeException: Error during invoking function insertIpsum
in module
file:///home/user/libreoffice/instdir/share/Scripts/python/TestAnything.py
(<class 'NameError'>: name 'paras' is not defined
  File "/home/tonttu/libreoffice/instdir/program/pythonscript.py", line 915, in
invoke
    ret = self.func( *args )
  File "/home/user/libreoffice/instdir/share/Scripts/python/TestAnything.py",
line 12, in insertIpsum
    doc.getText().setString(Ipsum.getLoremipsum(1,paras,yes))
)

Please advise.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to