From 4ee8b6f4751bd71333c93756474148cfa7afc750 Mon Sep 17 00:00:00 2001 From: LibreOļ¬ƒciant Date: Wed, 24 Apr 2019 08:28:24 +0200 Subject: added hasUnoInterfaces() Change-Id: I41e521c34c4dbf161b0bd4316da75d6db7ec4314 Reviewed-on: https://gerrit.libreoffice.org/71214 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/python/python_programming.xhp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source') 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 @@ + def hasUnoInterfaces(obj, *interfaces): + return set(interfaces).issubset(t.typeName for t in obj.Types) + HasUnoInterfaces() -- cgit