summaryrefslogtreecommitdiffstats
path: root/source/text/sbasic/python
diff options
context:
space:
mode:
Diffstat (limited to 'source/text/sbasic/python')
-rw-r--r--source/text/sbasic/python/python_programming.xhp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/text/sbasic/python/python_programming.xhp b/source/text/sbasic/python/python_programming.xhp
index 5b3998ef60..888ed96b4a 100644
--- a/source/text/sbasic/python/python_programming.xhp
+++ b/source/text/sbasic/python/python_programming.xhp
@@ -243,6 +243,12 @@
</tablerow>
<tablerow>
<tablecell>
+ <paragraph role="tablecontent" localize="false" id="N0292">def hasUnoInterfaces(obj, *interfaces):</paragraph>
+ <paragraph role="tablecontent" localize="false" id="N0293">return set(interfaces).issubset(t.typeName for t in obj.Types)</paragraph>
+ <!-- Credits:
+ [Python]Equivalent 'supportsService' by Hubert Lambert
+ @ https://forum.openoffice.org/fr/forum/viewtopic.php?f=8&t=56597
+ -->
</tablecell>
<tablecell>
<paragraph role="tablecontent" localize="false" id="N0294">HasUnoInterfaces()</paragraph>