Revision: 6716 Author: nicdumz Date: 2009-04-25 14:55:09 +0000 (Sat, 25 Apr 2009)
Log Message: ----------- Remember the results of Page.interwiki in ._interwikis
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-04-25 14:51:44 UTC (rev 6715) +++ trunk/pywikipedia/wikipedia.py 2009-04-25 14:55:09 UTC (rev 6716) @@ -1731,6 +1731,9 @@ interwiki links in the page text.
""" + if hasattr(self, "_interwikis"): + return self._interwikis + result = [] ll = getLanguageLinks(self.get(), insite=self.site(), pageLink=self.aslink()) @@ -1754,6 +1757,8 @@ output( u"ERROR: link from %s to [[%s:%s]] is improperly formatted?" % (self.aslink(), newSite, newTitle)) + + self._interwikis = result return result
def categories(self, get_redirect=False):
pywikipedia-svn@lists.wikimedia.org