Attachment 'application_vnd_ms_excel.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - msexcel filter
4
5 Depends on: "xls2csv" command from "catdoc" package
6
7 @copyright: 2006 MoinMoin:ThomasWaldmann
8 @license: GNU GPL, see COPYING for details.
9
10 Siehe auch: http://www.irongeek.com/i.php?page=backtrack-3-man/xls2csv
11
12 """
13
14 from MoinMoin.filter import execfilter
15
16 def execute(indexobj, filename):
17 data = execfilter('xls2csv "%s"', filename)
18 # xls2csv uses comma as field separator and "field content",
19 # we strip both to not confuse the indexer
20 data = data.replace(u',', u' ').replace(u'"', u' ')
21 return data
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.