[Pywikipedia-l] SVN: [5463] trunk/pywikipedia/wikipedia.py

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Thu May 29 14:04:25 UTC 2008


Revision: 5463
Author:   rotem
Date:     2008-05-29 14:04:25 +0000 (Thu, 29 May 2008)

Log Message:
-----------
I guess this is what it means; clarifying comment in Site.linkto.

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-05-29 13:57:41 UTC (rev 5462)
+++ trunk/pywikipedia/wikipedia.py	2008-05-29 14:04:25 UTC (rev 5463)
@@ -3358,7 +3358,7 @@
             link = links[site].aslink(forceInterwiki=True)
             s.append(link)
         except AttributeError:
-            s.append(insite.linkto(links[site], othersite=insite))
+            s.append(getSite(site).linkto(links[site], othersite=insite))
     if insite.lang in insite.family.interwiki_on_one_line:
         sep = u' '
     else:
@@ -5096,7 +5096,8 @@
     def linkto(self, title, othersite = None):
         """Return unicode string in the form of a wikilink to 'title'
 
-        Use optional Site argument 'othersite' to generate an interwiki link.
+        Use optional Site argument 'othersite' to generate an interwiki link
+        from the other site to the current site.
 
         """
         if othersite and othersite.lang != self.lang:





More information about the Pywikipedia-l mailing list