changeset 455:e5609b8b7647

fix MoinMoinBugs/SelfInterWikiNotWorkAsExpect imported from: moin--main--1.5--patch-459
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 25 Feb 2006 12:29:22 +0000
parents e099072bba24
children 12b6367214e3
files ChangeLog MoinMoin/wikiutil.py
diffstat 2 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 25 08:11:57 2006 +0000
+++ b/ChangeLog	Sat Feb 25 12:29:22 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-02-25 13:29:22 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-459
+
+    Summary:
+      fix MoinMoinBugs/SelfInterWikiNotWorkAsExpect
+    Revision:
+      moin--main--1.5--patch-459
+
+    fix MoinMoinBugs/SelfInterWikiNotWorkAsExpect
+    
+
+    modified files:
+     ChangeLog MoinMoin/wikiutil.py
+
+
 2006-02-25 09:11:57 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-458
 
     Summary:
--- a/MoinMoin/wikiutil.py	Sat Feb 25 08:11:57 2006 +0000
+++ b/MoinMoin/wikiutil.py	Sat Feb 25 12:29:22 2006 +0000
@@ -413,10 +413,8 @@
         try:
             wikitag, tail = wikiurl.split("/", 1)
         except ValueError:
-            wikitag = None
-            tail = None
-
-    return (wikitag, tail)
+            wikitag, tail = 'Self', wikiurl
+    return wikitag, tail
 
 
 def join_wiki(wikiurl, wikitail):
@@ -488,7 +486,7 @@
     wikitag, tail = split_wiki(wikiurl)
 
     # return resolved url
-    if wikitag and _interwiki_list.has_key(wikitag):
+    if _interwiki_list.has_key(wikitag):
         return (wikitag, _interwiki_list[wikitag], tail, False)
     else:
         return (wikitag, request.getScriptname(), "/InterWiki", True)