[Chicago] [RFC]ootools with pyuno

Lukasz Szybalski szybalski at gmail.com
Wed Sep 2 00:04:09 CEST 2009


Hello,

Based on some work that was done by
http://www.linuxjournal.com/content/starting-stopping-and-connecting-openoffice-python
I've created a ootools package that allows you to start openoffice in
just 2 lines of python code. It requires openoffice -headless and
oo2.4+. Install it and give it a try.


---How to install it ---

easy_install ootools
or
sudo easy_install ootools

-- How to use it --

python
import ootools
oor=ootools.OORunner()
oor.start()

# open office headless should start on port 8100.
#Check using command: netstat -atpen | grep soffice
#To stop it do:

oor.stop()


-- How to get desktop object --

import ootools
oor=ootools.OORunner()
oor.start()
desktop=oor.connect()
#Do something with the desktop.

#When done
oor.close()


Give it a try and let me know. It works correctly under Debian lenny 32bit.

What os you have system, path to open office,etc.

Thanks,
Lucas



-- 
Using rsync. How to setup rsyncd.
http://lucasmanual.com/mywiki/rsync
OpenLdap - From start to finish.
http://lucasmanual.com/mywiki/OpenLdap


More information about the Chicago mailing list