Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
>>> import unohelper # installs import-hook >>> import openoffice.interact >>> import openoffice.officehelper as officehelper >>> from openoffice.streams import OutputStream >>> from com.sun.star.beans import PropertyValue >>> desktop = openoffice.interact.Desktop() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/dist-packages/openoffice_python-0.1_r34_20090228-py2.6.egg/openoffice/interact.py", line 75, in __init__ ctx = Context(pipename=pipename, host=host, port=port) File "/usr/local/lib/python2.6/dist-packages/openoffice_python-0.1_r34_20090228-py2.6.egg/openoffice/interact.py", line 28, in __init__ host=host, port=port) File "/usr/local/lib/python2.6/dist-packages/openoffice_python-0.1_r34_20090228-py2.6.egg/openoffice/officehelper.py", line 158, in bootstrap context = connect(connectString) File "/usr/local/lib/python2.6/dist-packages/openoffice_python-0.1_r34_20090228-py2.6.egg/openoffice/officehelper.py", line 128, in connect raise BootstrapException("Cannot connect to soffice server.") openoffice.officehelper.BootstrapException: Cannot connect to soffice server.
This paste will be private.
From the Design Piracy series on my blog: