view MoinMoin/action/RenderAsDocbook.py @ 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
children e0cbf33ff15c
line wrap: on
line source
"""
    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