view MoinMoin/action/RenderAsDocbook.py @ 4184:b4acdce23cfa

Group some functionality
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 21 Jun 2008 20:01:54 +0200
parents a739558ca3dc
children c60dee8f45be
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': 'text/docbook'})
    request.http_redirect(url)