Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hello,

currently, the PyUNO bridge converts tuples and lists by converting each element to Any and then constructing a list of []Any. This is not what many functions expect and leads to a suboptimal experience, e.g. when using XPropertySet.setPropertyValue:

https://forum.openoffice.org/en/forum/viewtopic.php?t=56460

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

A lazy grep through the sdk/idl gives
80 uses of []Any ( rgrep 'sequence< *any' sdk/idl | wc -l )
220 uses of []String ( rgrep 'sequence< *string' sdk/idl  | wc -l )

but that isn't really what this is about, it's about what sequence types are expected when an any is passed.

My intuition would be that the more specific type is better when applicable, but I would value your input whether such a change would be considered an improvement.

Best regards

Thomas

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.