[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2023-09-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

BogdanB  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |NOTABUG
 CC||buzea.bog...@libreoffice.or
   ||g

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

QA Administrators  changed:

   What|Removed |Added

 Ever confirmed|1   |0
 Status|NEEDINFO|UNCONFIRMED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

--- Comment #5 from QA Administrators  ---
[Automated Action] NeedInfo-To-Unconfirmed

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

--- Comment #4 from Andreas Säger  ---
OK. Close this.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

--- Comment #3 from Mike Kaganski  ---
Note: the code in comment 0 additionally misses the closing parenthesis. It
should be

import uno
def test_isInstance():
doc = XSCRIPTCONTEXT.getDocument()
print(uno.isInterface(doc))

I tried it using Version: 7.4.0.2 (x64) / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

and indeed, it works as described.

Then I modified it like this:

import uno

def test_isInstance():
doc = XSCRIPTCONTEXT.getDocument()
print(uno.isInterface(uno.getClass("com.sun.star.uno.XInterface")))

and it returned 1.

I really don't know what the isInterface might be used for, but it looks like
it expects some type meta-objects, not actual interface implementations.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

--- Comment #2 from Andreas Säger  ---
Yes, I mean isInterface.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150257] [PyUNO] uno.isInstance(obj) returns 0

2022-08-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150257

Rafael Lima  changed:

   What|Removed |Added

 CC||rafael.palma.l...@gmail.com
 Status|UNCONFIRMED |NEEDINFO
 Ever confirmed|0   |1

--- Comment #1 from Rafael Lima  ---
AFAIK uno.py does not have a method named isInstance so calling it would cause
an error. See the contents of uno.py and this method does not exist:

https://opengrok.libreoffice.org/xref/core/pyuno/source/module/uno.py?r=c7568cfd

Maybe you're referring to the isInterface method?

-- 
You are receiving this mail because:
You are the assignee for the bug.