[Pywikipedia-l] SVN: [6231] branches/rewrite/pywikibot/page.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Thu Jan 8 16:54:51 UTC 2009
Revision: 6231
Author: russblau
Date: 2009-01-08 16:54:50 +0000 (Thu, 08 Jan 2009)
Log Message:
-----------
fix bugs in change_category method
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2009-01-08 16:20:27 UTC (rev 6230)
+++ branches/rewrite/pywikibot/page.py 2009-01-08 16:54:50 UTC (rev 6231)
@@ -628,7 +628,7 @@
"""
if not comment:
- comment = pywikibot.default_comment # needs to be defined
+ comment = config.default_edit_summary
if watch is None:
unwatch = False
watch = False
@@ -798,6 +798,7 @@
return result
@deprecate_arg("nofollow_redirects", None)
+ @deprecate_arg("get_redirect", None)
def categories(self, withSortKey=False):
"""Iterate categories that the article is in.
@@ -1040,7 +1041,7 @@
if answer in ['y', 'Y']:
return self.site().protect(self, edit, move, reason)
- def change_category(article, oldCat, newCat, comment=None, sortKey=None,
+ def change_category(self, oldCat, newCat, comment=None, sortKey=None,
inPlace=True):
"""Remove page from oldCat and add it to newCat.
More information about the Pywikipedia-l
mailing list