Revision: 6678 Author: nicdumz Date: 2009-04-23 05:18:08 +0000 (Thu, 23 Apr 2009)
Log Message: ----------- When rendering a Link, what matters is the Site where the Link comes from, not the Site where the Link points to:
def example(): ensite = pywikibot.Site('en') link = pywikibot.Link('fr:Test', source=ensite)
return link.astext()
Before : [[Test]] After : [[fr:Test]]
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2009-04-23 00:24:10 UTC (rev 6677) +++ branches/rewrite/pywikibot/page.py 2009-04-23 05:18:08 UTC (rev 6678) @@ -1903,7 +1903,7 @@
""" if onsite is None: - onsite = self.site + onsite = self._source title = self.title if self.namespace: title = onsite.namespace(self.namespace) + ":" + title
pywikipedia-svn@lists.wikimedia.org