view MoinMoin/filter/ @ 5928:d97e3b0d6b49

reorder input fields in recoverpass form, to help browsers remember the user name (not the recovery token)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Jan 2013 16:24:06 +0100
parents 7185d43b2504
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - msword filter

    Depends on: antiword command from antiword package

    @copyright: 2006-2008 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

import os

from MoinMoin.filter import execfilter

def execute(indexobj, filename):
    cmd = "antiword %s"
    if == 'posix':
        cmd = "HOME=/tmp " + cmd  # no HOME makes antiword complain (on Linux)
    return execfilter(cmd, filename)