From f75ca14127f4abb645102f95c95f6c87ddb61e3f Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 11 Oct 2007 10:52:50 +0000 Subject: INTEGRATION: CWS pyunofixes4 (1.5.46); FILE MERGED 2007/07/30 19:43:44 jbu 1.5.46.1: adding pythonpath import functionality, fixed a gc deadlock, fixed some minor issues --- pyuno/source/module/unohelper.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/unohelper.py b/pyuno/source/module/unohelper.py index 94ece13bed92..9ae787a1fb6a 100644 --- a/pyuno/source/module/unohelper.py +++ b/pyuno/source/module/unohelper.py @@ -4,9 +4,9 @@ # # $RCSfile: unohelper.py,v $ # -# $Revision: 1.5 $ +# $Revision: 1.6 $ # -# last change: $Author: obo $ $Date: 2006-03-22 10:53:27 $ +# last change: $Author: kz $ $Date: 2007-10-11 11:52:50 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -88,6 +88,15 @@ def _propertymode_to_str( mode ): return ret.rstrip() def inspect( obj , out ): + if isinstance( obj, uno.Type ) or \ + isinstance( obj, uno.Char ) or \ + isinstance( obj, uno.Bool ) or \ + isinstance( obj, uno.ByteSequence ) or \ + isinstance( obj, uno.Enum ) or \ + isinstance( obj, uno.Any ): + out.write( str(obj) + "\n") + return + ctx = uno.getComponentContext() introspection = \ ctx.ServiceManager.createInstanceWithContext( "com.sun.star.beans.Introspection", ctx ) @@ -290,7 +299,7 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ): return self.implementationName def supportsService( self, ServiceName ): - return ServiceName in serviceNames + return ServiceName in self.serviceNames def getSupportedServiceNames( self ): return self.serviceNames -- cgit