view MoinMoin/action/RenderAsDocbook.py @ 656:ad2ac49d17fe

use only action=show with mimetype instead of deprecated format action
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 16 May 2006 13:10:13 +0200
parents e0cbf33ff15c
children a371c6e972d3
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

def execute(pagename, request):
    url = Page(request, pagename).url(request, {'action': 'show',
                                                'mimetype': 'xml/docbook'}, 0)
    request.http_redirect(url)