jenkins-bot has submitted this change and it was merged.
Change subject: [SYNC] Add category move when the is user is allowed
......................................................................
[SYNC] Add category move when the is user is allowed
similar to core
Change-Id: I0538373d72bdd671211da39e5084c6a1c55c5378
---
M category.py
1 file changed, 9 insertions(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/category.py b/category.py
index 3f7043b..090f305 100644
--- a/category.py
+++ b/category.py
@@ -429,7 +429,15 @@
# Copy the category contents to the new category page
copied = False
oldMovedTalk = None
- if self.oldCat.exists() and self.moveCatPage:
+ if (site.isAllowed('move-categorypages') and self.oldCat.exists()
+ and self.moveCatPage):
+ self.oldCat.move(
+ newCat.title(),
+ reason=self.editSummary,
+ movetalkpage=True,
+ leaveRedirect=not self.deleteEmptySourceCat)
+ copied = True
+ elif self.oldCat.exists() and self.moveCatPage:
copied = self.oldCat.copyAndKeep(
newCat.title(), pywikibot.translate(site, cfd_templates))
# Also move the talk page
--
To view, visit https://gerrit.wikimedia.org/r/140805
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0538373d72bdd671211da39e5084c6a1c55c5378
Gerrit-PatchSet: 6
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
Gerrit-Reviewer: Calak <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Nullzero <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits