annotate 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
rev   line source
87
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
1 """
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
2 MoinMoin - Render as DocBook action - redirects to the DocBook formatter
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
3
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
4 @copyright: 2005 MoinMoin:AlexanderSchremmer
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
5 @license: GNU GPL, see COPYING for details.
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
6 """
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
7
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
8 from MoinMoin.Page import Page
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
9 from MoinMoin.util import MoinMoinNoFooter
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
10
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
11 def execute(pagename, request):
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
12 url = Page(request, pagename).url(request, {'action': 'format',
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
13 'mimetype': 'xml/docbook'}, 0)
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
14 request.http_redirect(url)
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
15 raise MoinMoinNoFooter