MSWord Document Installation How-To

Requirements

Instructions

UNIX-like systems

  1. Extract MSWord Document Product archive (MSWordDocument.tar.gz) in your Zope Products directory.
  2. Install vw in /usr or /usr/local and modify the variable self.prefix in MSWord.py in the product directory following where you have installed wv.
  3. Move wvZope.xml into '/wvWare_installation_path/lib/wv'.
  4. Make sure Zope is allowed to write in "/tmp".
  5. Restart Zope !

MS Windows systems

  1. Install Python1.5 and Win32 Extensions build 136 (win32all-136.exe).
  2. Extract MSWord Document Product archive (MSWordDocument.tar.gz) in your Zope Products directory.
  3. Generate Python/COM bindings:
  4. Make sure Zope is allowed to write in C:\WINDOWS\TEMP
  5. Start Zope with 'C:\PROGRA~1\PYTHON\PYTHON.EXE C:\ZOPE_ROOT\Z2.PY -D'

Note: Win32 extensions are available from http://downloads.activestate.com/ActivePython/windows/win32all/win32all-136.exe

Modify NullResource.py

To enable transparent MSWordDocument creation when you put a document onto the Zope server using FTP ou WebDAV, you must modify 'NullResource.py'. This step is not required for MSWordDocument to work. It's only necessary if you want transparent creation of MSWordDocuments.

Follow these intruction to patch NullResource.py:

  1. Find NullResource.py (located in "ZOPE_ROOT/lib/python/webdav") and edit it.
  2. Locate the two line:
    elif typ[:6]=='image/':
        ob=Image(name, '', body, content_type=typ)
  3. Insert after it:
    elif typ == 'application/msword':
        from Products.MSWordDocument import MSWordDocument
        ob=MSWordDocument(name, body)
  4. TAKE CARE AT THE IDENTATION
  5. Restart Zope

Trouble or Success

If you have any trouble send me a mail at eric@netsystems.fr, with you're problem and a Zope traceback if necessary. A mailing-list is also available: click here to subscribe.

If you manage to install and use MSWord Document I would be very happy to hear about it !



Have Fun,
Éric BARROCA.