Attachment 'PermanentLink.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - Simplistic PermanentLink action
4
5 Freeware. polzin_spamprotect_ at gmx.de
6 """
7
8 import os
9 from MoinMoin.Page import Page
10 from MoinMoin.util import MoinMoinNoFooter
11
12 def execute(pagename, request):
13 page = Page(request, pagename)
14 revisions = page.getRevList()
15 versions = len(revisions)
16 request.http_redirect(page.url(request)+"?action=recall&rev=%i"%versions)
17 request.finish()
18 raise MoinMoinNoFooter
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.