view MoinMoin/action/RenderAsDocbook.py @ 4229:c60dee8f45be

Fixed docbook rendering (and obviously several other problems that didn't show in tests)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 19 Jul 2008 01:35:07 +0200
parents a739558ca3dc
children 4476d5ca521c
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 werkzeug.exceptions import abort
from werkzeug.utils import redirect

from MoinMoin.Page import Page

def execute(pagename, request):
    url = Page(request, pagename).url(request, {'action': 'show', 'mimetype': 'text/docbook'})
    return abort(redirect(url))