summaryrefslogtreecommitdiff
path: root/pyuno/source/module/unohelper.py
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-10-11 10:52:50 +0000
committerKurt Zenker <kz@openoffice.org>2007-10-11 10:52:50 +0000
commit2b5beb9dc8877ce85f3e587bfe70c212c14fe887 (patch)
treed210eed3ed74fd45be6cebe5a10d58ab18319ebf /pyuno/source/module/unohelper.py
parent071e2f60ae3b1447238c9a06e4dd67b4a6a240c3 (diff)
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
Diffstat (limited to 'pyuno/source/module/unohelper.py')
-rw-r--r--pyuno/source/module/unohelper.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/pyuno/source/module/unohelper.py b/pyuno/source/module/unohelper.py
index 94ece13be..9ae787a1f 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