/usr/share/pyshared/MoinMoin/action/RenderAsDocbook.py is in python-moinmoin 1.9.3-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | """
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'})
return request.http_redirect(url)
|