[Zope-CMF] Microsoft Word, Excel and Powerpoint with CMF
Luca Olivetti
luca@wetron.es
Fri, 03 May 2002 20:10:45 +0200
Sion Morris wrote:
> NuxDocument but it failed to work on CMF1.2 (the author has been notified).
I had to make some small (but difficult for me to find) changes to it
but I got it working.
Maybe you're having the same problems I had with it?
This is the message I sent to the author, maybe it fixes your problems too:
Hi,
I found a buglet in MSOffice.py that would cause problems if the id of
the object has spaces. At bottom you can find the fix.
Also, I found (after much banging my head against the wall ;) that my
version of vwHtml doesn't complain if the document isn't a word file
(the result was that I couldn't convert xml files), so I just put
MSWordConverter last in my list of plugins.
Bye
--- MSOffice.py~ Mon Apr 8 15:11:55 2002
+++ MSOffice.py Mon Apr 8 15:44:35 2002
@@ -19,7 +19,7 @@
def _convertToHtml(self):
# was "cd '%s' && wvWare -c iso-8859-1 -x %s '%s.%s' > '%s.html'..."
- cmd = ("cd '%s' && wvHtml '%s.%s' '%s.html' 2> %s.log-wvWare"
+ cmd = ("cd '%s' && wvHtml '%s.%s' '%s.html' 2> '%s.log-wvWare'"
% (self.tmpdir, self.name, self.suffix, self.name, self.name))
misc.systemWithTimeout(cmd, 30)
log = open("%s/%s.log-wvWare" % (self.tmpdir, self.name), "r").read()
--
Luca Olivetti