Dear all,
I'm developing a formatter for OpenDocument output (a.k.a. for StarOffice,
OpenOffice, Koffice, ...). If you want, you can find it on moinmo.in in the
formatter section, however only for MoinMoin 1.5 until now.
At the moment generating a OpenDocument file involves the following procedure:
- Generate some XML files (for content, styles, ...)
- Put them into a ZIP file and store it
- Open the ZIP file and deliver it as a big binary string to the client
However this has a few drawbacks:
- Browsers don't get the correct filename (at least they're missing
the extension ".odt"). Without this extension OpenDocument files
are seen as ZIP-Files (at least on my system)
- Even if there's no new revision of the page, every time when the
action "Render as OpenDocument" is called a new OpenDocument
file is generated (which may take a few seconds)
So I'm looking for a possibility to :
(1) Write an OpenDocument file and store it in some wiki directory
permanently (so no temp directory as I do now with
tempfile.mkdtemp()...)
(2) Do a HTTP redirect to this file (so all browsers get the correct
filename)
Before this there should be a check:
(0) Check whether there's a OpenDocument file corresponding to
the newest revision of the wiki page. If yes, proceed with (2),
if no, proceed with (1)
But I need help with this. Which directory should I choose? How do I read page
revisions? How do I do a HTTP redirect in MoinMoin?
Thanks a lot for your help,
Hape
--
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user