annotate MoinMoin/action/RenderAsDocbook.py @ 618:e0cbf33ff15c

remove MoinMoinNoFooter (not needed and more), please call theme.send_closing_html() for closing what send_title() opened
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 05 May 2006 13:46:34 +0200
parents ee1c9e86b393
children ad2ac49d17fe
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
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
10 def execute(pagename, request):
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
11 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
12 'mimetype': 'xml/docbook'}, 0)
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
13 request.http_redirect(url)
618
e0cbf33ff15c remove MoinMoinNoFooter (not needed and more), please call theme.send_closing_html() for closing what send_title() opened
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 87
diff changeset
14