Ted Stern schrieb: > Hi, > > My users would really like to see csv and MS Excel spreadsheets > inlined as MoinMoin tables. > > I see that there is a handler for xls2csv processing: > > lib/python2.5/site-packages/MoinMoin/filter/application_vnd_ms_excel.py Hi
this is used for xapian index build. > > which is set up to support xls2csv from catdoc. > > How do I extend the mimetypes in my farmconfig.py so that both > csv and xls files are processed? To do this, I have to modify > MIMETYPES_MORE to add > > 'csv': 'text/csv' > 'xls': 'application/application_vnd_ms_excel' > The csv parser should show any csv file rendered in a page by using transclusion syntax. see HelpOnLinking in your wiki. We don't have a parser for xls files. And I don't know of a browser plugin which could be used to render inline the xls file. If you have a plugin you also could use transclusion syntax. usually the mimetypes are defined on your system the pathes can be found by: python >>> import mimetypes >>> mimetypes.posixpath ctrl+d > > Shouldn't those be included by default? > they are included on my box in /etc/mime.types Reimar > BTW, I have access to the wiki farm files but not the moin > installation, so I can't just go in and edit .../MoinMoin/wikiutils.py > by hand. > > I just updated to version 1.8.4. In earlier versions I accomplished > this task using the ShowCSV2 macro, but I'd like to avoid the > intermediate step. > > Ted ------------------------------------------------------------------------------ _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user