view MoinMoin/filter/application_msword.py @ 863:50a8b4a06abf

indexing filters: use single-quoted filenames to avoid problems with blanks
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 20 Jun 2006 21:03:04 +0200
parents 50f4d23d2e37
children c907c2942372
line wrap: on
line source

# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - msword filter

    Depends on: antiword command from antiword package
    
    @copyright: 2006 by ThomasWaldmann MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.
"""

from MoinMoin import filter

def execute(indexobj, filename):
    return filter.execfilter("HOME=/tmp antiword '%s'", filename) # no HOME makes antiword complain