Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/136727

Change subject: (bugfix) self.oldcat/self.newcat parameters has been changed
......................................................................

(bugfix) self.oldcat/self.newcat parameters has been changed

- Page.move() excpects a title, not a Category object.
- fix deprectated_arg warnings

Bugfix for https://gerrit.wikimedia.org/r/#/c/134776/

Change-Id: I7b02c193fd477e434671597251b2c90b60385d76
---
M scripts/category.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/27/136727/1

diff --git a/scripts/category.py b/scripts/category.py
index 7468a48..d2d8b82 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -468,7 +468,8 @@
         """
         if self.newcat and self.move_oldcat and not self.newcat.exists():
             if "move-categorypages" in self.site.userinfo["rights"]:
-                self.oldcat.move(self.newcat, reason=self.comment, 
movetalkpage=True)
+                self.oldcat.move(self.newcat.title(), reason=self.comment,
+                                 movetalkpage=True)
             else:
                 self._movecat()
                 self._movetalk()
@@ -1053,9 +1054,8 @@
                 u'Please enter the new name of the category:')
         bot = CategoryMoveRobot(oldCatTitle, newCatTitle, batchMode,
                                 editSummary, inPlace,
-                                deleteEmptySourceCat=deleteEmptySourceCat,
-                                titleRegex=titleRegex,
-                                withHistory=withHistory)
+                                delete_oldcat=deleteEmptySourceCat,
+                                title_regex=titleRegex, history=withHistory)
         bot.run()
     elif action == 'tidy':
         catTitle = pywikibot.input(u'Which category do you want to tidy up?')

-- 
To view, visit https://gerrit.wikimedia.org/r/136727
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b02c193fd477e434671597251b2c90b60385d76
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to