Re: [api-dev] How to avoid Python bridge conversion of SequencePropertyValue to SequenceAny

2009-12-30 Thread Joerg Budischewski
Hi, Anyway, notice that it works (at least on a DEV300_m68 on Linux) without needing the uno.invoke you also suggest: uno.invoke( xTextDoc, storeToURL, ( sURL, aMediaDescriptor) ) should I use this indirect invocation or keep the direct call to XStoreable.storeToURL ? the short answer:

Re: [api-dev] How to avoid Python bridge conversion of SequencePropertyValue to Sequence:Any

2009-12-28 Thread Joerg Budischewski
Hi, the attached patch works for me. Give it a try. Bye, Joerg Ariel Constenla-Haile wrote: Hi there, In Python, I need to transport a css::uno::Sequencecss::beans::PropertyValue inside the css.document.MediaDescriptor's FilterData for the PDF export filter. I guess (my PyUNO knowledge is

Re: [api-dev] python and loadComponentFromURL()

2009-10-30 Thread Joerg Budischewski
Hi, python lists are not supported, use tuples instead. Try to change the line Properties = [hidden] to Properties = hidden, and try again. Bye, Joerg John Gleeson schrieb: Open Office Support: I am developing a python program that will allow a cell to be filled in with arbitrary text

Re: [api-dev] PyUNO and 2.0: components stuck in 2nd ride

2006-03-21 Thread Joerg Budischewski
Hi, At first I had problems both on linux and Windows. What happened was that the first time I ran a VB macro instantiating my python components everything went ok. It was just when trying to run again that the system blocked forever. On windows, it was necessary to kill OOo and exit the

Re: [api-dev] quickstarter / storeToURL problem (python)

2006-01-23 Thread Joerg Budischewski
Hi, Clement wrote I should try: Except Exception, e: print str(e) But this only showed me, that apparently the ErrCode is not accessible in Python. e was an empty string :/ don't think so. If you write except ErrorCodeIOException, e: print str(e) e can't be an empty string,

Re: [api-dev] PyUNO: importing modules in package directory

2005-10-19 Thread Joerg Budischewski
Hi, yes this is correct. You can only circumvent by placing the module files in PYTHONPATH (see pythonloader.uno[rc|.ini]), but this is not easily deployable anymore. Bye, Joerg [EMAIL PROTECTED] wrote: Hi, all! It seems that the main python module of a UNO component cannot trivially

Re: [api-dev] multiple-inheritance interafces and method name clashes

2005-10-17 Thread Joerg Budischewski
Hi, But I think the most striking advantage a typeunsafe over a typesafe language has, is that you need to write less source code to do the same thing. If the language binding would be designed with an queryInterface, the advantage would vanish hurting you with nearly every line of uno code

Re: [api-dev] multiple-inheritance interafces and method name clashes

2005-10-13 Thread Joerg Budischewski
Hi, I have no idea how pyuno does it. But note that this problem was there from the beginning, and has nothing to do with the addition of multiple-inheritance interfaces. There are, for example, already cases where one UNO object implements both XComponent and XEventBroadcaster, and I have

Re: [api-dev] Problem translating java method, getTypeName(), to python

2005-09-13 Thread Joerg Budischewski
Hi, there is one on the webpage, http://udk.openoffice.org/python/python-bridge.html but I basically don't want to invest time to transfer it into the developer manual. Bye, Joerg Christian Junker wrote: Hi Kim, thanks for your input first of all. As already said in an answer before,

Re: [api-dev] Python equivalent to com.sun.star.comp.helper.Bootstrap.bootstrap()?

2005-09-12 Thread Joerg Budischewski
Hi, there is no counterpart Bootstrap.bootstrap() in pyuno core as far as i know. You should have a look at the java implementation to see what it does (

Re: [api-dev] Problem translating java method, getTypeName(), to python

2005-09-12 Thread Joerg Budischewski
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

Re: [api-dev] C++ - Try / catch block not catching anything ?

2005-07-29 Thread Joerg Budischewski
Hi, I guess, you are on some unix ? You need to build your program with the same compiler version as OOo has been built with. Not doing this typically breaks exception handling, because you get incompatible stdc++ libraries into your process. Bye, Joerg Pierre-André wrote: Hello, While