Joerg Budischewski wrote: > 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.
I beg to differ. All the details how exactly a connection is established are completely irrelevant in (guestimated) far more than 90% of all "professional applications". Of course errors need to be transported by suitable exceptions, but you don't need to carry out each step by yourself to get the correct error message in case one of these steps fails. OTOH the "concentional" way of establishing a UNO connection is an obstacle for beginners and very often annoying for others. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
