OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[Solved][Python] Importing com.sun.star.uno.AnyConverter

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
ishanthilina
General User
General User


Joined: 17 Mar 2012
Posts: 46

PostPosted: Mon Jul 02, 2012 9:10 pm    Post subject: [Solved][Python] Importing com.sun.star.uno.AnyConverter Reply with quote

Hi,

When I try to import AnyConverter using from com.sun.star.uno import AnyConverter I get the following error.

Code:
ERROR: Couldn't load file:///home/ishan/.libreoffice/3/user/uno_packages/cache/uno_packages/lukvbn7g.tmp_/out.oxt/CcOOoAddin.py for reason type com.sun.star.uno.AnyConverter is unknown


I'm porting a Java extension to Python. AnyConverter has been used to do the following in the Java extension.

Code:

//xBitmapContainer is a XNameContainer

Object obj = xBitmapContainer.getByName("imgID");
String internalURL = AnyConverter.toString(obj);


Any help regarding this will be highly appreciated Smile


Last edited by ishanthilina on Thu Jul 05, 2012 7:04 am; edited 1 time in total
Back to top
View user's profile Send private message
hanya
Super User
Super User


Joined: 04 May 2005
Posts: 543
Location: Japan

PostPosted: Tue Jul 03, 2012 4:30 am    Post subject: Reply with quote

There is no AnyConverter for PyUNO, it is only for Java bridge.
If you rewrite something in other language, learn both languages. See:
http://www.openoffice.org/api/docs/java/ref/overview-summary.html

In PyUNO bridge, no "any" idl type value returned by UNO methods or properties.
Back to top
View user's profile Send private message
ishanthilina
General User
General User


Joined: 17 Mar 2012
Posts: 46

PostPosted: Thu Jul 05, 2012 7:04 am    Post subject: Reply with quote

Thanks for the pointer Hanya!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group