changeset 87:ee1c9e86b393

Allow the user to generate DocBook with a single click. imported from: moin--main--1.5--patch-89
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Fri, 07 Oct 2005 08:57:24 +0000
parents 5181bcd3feb5
children 9f037347955c
files MoinMoin/action/RenderAsDocbook.py docs/CHANGES
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/action/RenderAsDocbook.py	Fri Oct 07 08:57:24 2005 +0000
@@ -0,0 +1,15 @@
+"""
+    MoinMoin - Render as DocBook action - redirects to the DocBook formatter
+
+    @copyright: 2005 MoinMoin:AlexanderSchremmer
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin.Page import Page
+from MoinMoin.util import MoinMoinNoFooter
+
+def execute(pagename, request):
+    url = Page(request, pagename).url(request, {'action': 'format',
+                                                'mimetype': 'xml/docbook'}, 0)
+    request.http_redirect(url)
+    raise MoinMoinNoFooter
--- a/docs/CHANGES	Fri Oct 07 08:55:45 2005 +0000
+++ b/docs/CHANGES	Fri Oct 07 08:57:24 2005 +0000
@@ -163,6 +163,7 @@
       current page.
     * Added thread count to SystemInfo macro.
     * Added Petr's newest patch against the DocBook code.
+    * Added a RenderAsDocbook action which redirects to the DocBook formatter.
 
   International support:    
     * mail_from can be now a unicode name-address