List Info

Thread: OpenOffice 2.3 and .getName()




OpenOffice 2.3 and .getName()
user name
2007-08-24 09:46:37
Hello,

I am trying to use python-uno and OpenOffice 2.3 (OOo-dev
2.3.0, from
OOo-Dev_OOG680_m2_LinuxIntel_install_en-US_deb.tar).

Everything is fine. Well, I load the module using:

sys.path.append('/opt/ooo-dev2.3/program')
import pyuno

Then I have a warning:
-------------
RuntimeWarning: Python C API ve rsion mismatch for module
pyuno: This
Python has API version 1013, module pyuno has version 1012.
-------------

I see that mainly runs (my script opens a document, gets
some objects,
etc.) but I have a problem with very easy thing: getting the
object
name. I try:
target.getByIndex(i).getName()

This call is returning a 'unicode' type (Name type: <type
'unicode'>).

If I try to convert using encode("utf-8") I don't
see any correct name
(only some garbage).

Somebody has tried it in last version? just to pick up any
object name.

Version 2.2.0 returns me just a python string (if I'm not
confused).

Thank you!

-- 
Carles Pina i Estany		GPG id: 0x8CBDAE64
	http://pinux.info

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )