annotate MoinMoin/action/RenderAsDocbook.py @ 3572:870cc4c47705

AttachFile: fix saving of drawing files
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 May 2008 17:28:44 +0200
parents a739558ca3dc
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