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 (
http://udk.openoffice.org/source/browse/udk/javaunohelper/com/sun/star/comp/helper/Bootstrap.java?rev=1.13&content-type=text/vnd.viewcvs-markup
). Basically it starts the office executable before it connects to the
office, so your code just does the latter part.
I am actually also not sure, whether this belongs in a core api. This
function is a nice helper for starting to program with the office but it
hides too much away imho ( if the office process cannot be reached, the
function loops endlessly, it always an office process even when an
office is running, etc.) to be used in a professional application.
Bye,
Joerg
Kim Kulak wrote:
I've translated the one call to
com.sun.star.comp.helper.Bootstrap.bootstrap() in FirstUnoContact.java
to three calls in Python:
### com.sun.star.uno.XComponentContext xContext =
### com.sun.star.comp.helper.Bootstrap.bootstrap();
localContext = uno.getComponentContext()
resolver =
localContext.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",localContext)
xContext =
resolver.resolve("uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
So, is there an equivalent python function to
com.sun.star.comp.helper.Bootstrap.bootstrap()? I've searched the
documentation and the list archives and haven't been able to find an
answer to this question.
Kim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]