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

Neil Roberts <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Neil Roberts <[email protected]> ---
I had a go at implementing this here:
https://gerrit.libreoffice.org/c/core/+/211065

With those patches you can disable access to unpublished interfaces for a whole
Python module by adding the following line to the bottom of the file:

uno.disallow_unpublished_in_module(__name__)

When the feature is used it adds a non-negligible amount of overhead to every
method call and property access. On the other hand the method calls in pyuno
are already quite inefficient. It could be good to add some caching so that if
the same method is retrieved more than once it could cache whether it is from a
published interface or not. It might also be nice to make pyuno use
XIntrospectionAccess and XIdlMethod instead of XInvocation and then add a way
to expose the publishedness via that API instead of having to resort to using
the type description manager.

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

Reply via email to