[Libreoffice-bugs] [Bug 126392] New: [RFE] A way to print properties/methods of an object is needed

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 14 22:38:21 UTC 2019


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

            Bug ID: 126392
           Summary: [RFE] A way to print properties/methods of an object
                    is needed
           Product: LibreOffice
           Version: 6.2.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: hi-angel at yandex.ru

Created attachment 152769
  --> https://bugs.documentfoundation.org/attachment.cgi?id=152769&action=edit
Connects to LO instance running as a server

Currently when writing an UNO script it is very hard to figure out what
methods/properties an object has. One needs to search for documentation,
however some properties are not documented; and even if they were, it is much
faster to just print everything an object provides in an interactive prompt.

# Steps to reproduce

1. Download to current directory the attached script (it simply connects to
libreoffice)
1. Run office as: soffice --calc
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
2. Run "python" to enter an interactive shell
3. Execute in python: exec(open("./connect-to-lo.py").read())
4. Try printing the "model.CurrentController" object in such a way so you could
see "ActiveSheet" field

## Expected

There's a way to do it

## Actual

There's no way to view properties of the object, including the "ActiveSheet"
field.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190714/e4563d26/attachment.html>


More information about the Libreoffice-bugs mailing list