Joerg Budischewski wrote: > Hi, > > Kim Kulak wrote > >> While translating FirstLoadComponent.java to Python I've encountered >> problems with this one line of code: >> >> System.out.println(elemType.getTypeName()); >> >> 1. The method getTypeName() is not listed in the index of the "IDL >> Reference" documentation. > > have a look at > > http://udk.openoffice.org/python/python-bridge.html#mapping > > to see how a uno type is mapped. Basically, it is a uno.Type, which has > the members typeName and typeClass, so the java getTypeName() must be > transfered to a typeName.
This did it! The python expression I want is: print elemType.typeName > >> 2. The output from the unohelper.inspect() function on the elemType >> object indicates that there is a "getName()" method and a "Name" >> attribute but neither of these work either. > > unohelper.inspect() seems to report nonsense when a uno.Type is passed. > It either must report an error or give something sensible, you may > create an issue therefor and assign it to me (jbu). I will do that. Thanks a lot for your response, Kim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]