[Pywikipedia-l] SVN: [6116] branches/rewrite/pywikibot/page.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Mon Nov 24 16:43:22 UTC 2008
Revision: 6116
Author: russblau
Date: 2008-11-24 16:43:22 +0000 (Mon, 24 Nov 2008)
Log Message:
-----------
templatesWithParams bugfixes
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2008-11-23 16:52:20 UTC (rev 6115)
+++ branches/rewrite/pywikibot/page.py 2008-11-24 16:43:22 UTC (rev 6116)
@@ -771,9 +771,11 @@
named[key] = args[key]
else:
positional.append(args[key])
- for pos in positional:
- named.append("%s=%s" % (pos, positional[pos]))
- result.append(template[0], named)
+ for name in named:
+ positional.append("%s=%s" % (name, named[name]))
+ result.append((pywikibot.Page(
+ pywikibot.Link(template[0], self.site())),
+ positional))
return result
def categories(self, nofollow_redirects=None, withSortKey=False):
More information about the Pywikipedia-l
mailing list