annotate MoinMoin/action/RenderAsDocbook.py @ 3234:a739558ca3dc

Page.url() default changed to relative=False
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 10 Mar 2008 00:21:21 +0100
parents 4a31739bc6e1
children c60dee8f45be
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):
3234
a739558ca3dc Page.url() default changed to relative=False
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1816
diff changeset
11 url = Page(request, pagename).url(request, {'action': 'show', 'mimetype': 'text/docbook'})
87
ee1c9e86b393 Allow the user to generate DocBook with a single click.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
12 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
13