Re: Mocking OpenOffice in python?

2007-03-23 Thread Gerrit Muller
Méta-MCI schreef: > Hi! > > > Under windows, I drive OOo, from Python, via COM/OLE-automation. > > It's run OK, but some bugs, in the OOo-COM-Python, had stop my > devloppements... > > However, this way is usable (only on Win, ok?) > Do you have some (small) example program of using OOo from

Re: Mocking OpenOffice in python?

2007-03-14 Thread olive
On Mar 14, 9:39 am, "PaoloB" <[EMAIL PROTECTED]> wrote: > Hi everyone, Since OO is shipped with Py 2.3 only, I use Jython to drive OO through its Java API. Our app is a mix of: - ODT XML scrapping/templating based on Dom4j which, surprisingly, when use with Jython, is the most pythonic XML API I

RE: Mocking OpenOffice in python?

2007-03-14 Thread Delaney, Timothy (Tim)
"Your father was a hamster, and your mother smelled of elderberry." Oh - unit testing. Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

RE: Mocking OpenOffice in python?

2007-03-14 Thread Sells, Fred
FWIW the internal .odt is XML once it is unzipped. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of PaoloB Sent: Wednesday, March 14, 2007 9:11 AM To: python-list@python.org Subject: Re: Mocking OpenOffice in python? On 14 Mar, 14:48, Carsten Haese <[EMAIL PROT

Re: Mocking OpenOffice in python?

2007-03-14 Thread PaoloB
On 14 Mar, 14:52, Shane Geiger <[EMAIL PROTECTED]> wrote: > My take was that this is an effort to manipulate these files without the > need for Open Office, so I replied as follows: > > Open Office files (.ods and perhaps .odt) are just zipped or gzipped. > Unpack that and then you are dealing with

Re: Mocking OpenOffice in python?

2007-03-14 Thread PaoloB
On 14 Mar, 14:48, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2007-03-14 at 01:39 -0700, PaoloB wrote: > > Hi everyone, > > > during our development, we need to write some unit tests that interact > > with OpenOffice through pyUno. > > > Is there anyone who has got any experience on it? As O

Re: Mocking OpenOffice in python?

2007-03-14 Thread Shane Geiger
My take was that this is an effort to manipulate these files without the need for Open Office, so I replied as follows: Open Office files (.ods and perhaps .odt) are just zipped or gzipped. Unpack that and then you are dealing with manipulating regular text files--probably HTML.

Re: Mocking OpenOffice in python?

2007-03-14 Thread Carsten Haese
On Wed, 2007-03-14 at 01:39 -0700, PaoloB wrote: > Hi everyone, > > during our development, we need to write some unit tests that interact > with OpenOffice through pyUno. > > Is there anyone who has got any experience on it? As OpenOffice is > quite a large beast, and interaction is rather compl

Re: Mocking OpenOffice in python?

2007-03-14 Thread M�ta-MCI
Hi! Under windows, I drive OOo, from Python, via COM/OLE-automation. It's run OK, but some bugs, in the OOo-COM-Python, had stop my devloppements... However, this way is usable (only on Win, ok?) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list