Attachment 'siteredirect.patch'
Download 1 * looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.5--patch-393 to compare with
2 * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.5--patch-393
3 M MoinMoin/Page.py
4
5 * modified files
6
7 --- orig/MoinMoin/Page.py
8 +++ mod/MoinMoin/Page.py
9 @@ -1064,12 +1064,16 @@
10 # cascaded redirection
11 pi_redirect = args
12 if request.form.has_key('action') or request.form.has_key('redirect') or content_only: continue
13 -
14 request.http_redirect('%s/%s?action=show&redirect=%s' % (
15 request.getScriptname(),
16 wikiutil.quoteWikinameURL(pi_redirect),
17 wikiutil.url_quote_plus(self.page_name, ''),))
18 return
19 + elif verb == "siteredirect":
20 + pi_redirect = args
21 + if request.form.has_key('action') or request.form.has_key('redirect') or content_only: continue
22 + request.http_redirect('%s' % pi_redirect)
23 + return
24 elif verb == "deprecated":
25 # deprecated page, append last backup version to current contents
26 # (which should be a short reason why the page is deprecated)
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.