jenkins-bot has submitted this change and it was merged.
Change subject: Postpone botflag checking in Page
......................................................................
Postpone botflag checking in Page
Postpone botflag checking of save() in Page to editpage() in Site.
bug: T57140
Change-Id: I07b50032846423d38bfd976656d7f8001074de2c
---
M pywikibot/page.py
M pywikibot/site.py
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
Nullzero: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index e7a4a91..1f4c866 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -1026,8 +1026,6 @@
if not force and not self.botMayEdit():
raise pywikibot.OtherPageSaveError(
self, "Editing restricted by {{bots}} template")
- if botflag is None:
- botflag = ("bot" in self.site.userinfo["rights"])
if async:
pywikibot.async_request(self._save, comment=comment, minor=minor,
watchval=watchval, botflag=botflag,
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 4bc67d7..2c36ffa 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -4068,6 +4068,8 @@
if not recreate:
raise
token = self.tokens['edit']
+ if bot is None:
+ bot = ("bot" in self.userinfo["rights"])
self.lock_page(page)
params = dict(action="edit",
title=page.title(withSection=False),
--
To view, visit https://gerrit.wikimedia.org/r/192178
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I07b50032846423d38bfd976656d7f8001074de2c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: VcamX <vcamx3(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Nullzero <nullzero.free(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #2013
Status: Failed
Duration: 47 minutes and 3 seconds
Commit: 166e47d (master)
Author: Fabian Neundorf
Message: [FIX] Normalize username
This normalizes the username before site instantiation, so that the site
instances are all use the same username. It also further normalizes the
username for the password cache.
Bug: T73398
Change-Id: I4fd4cca7d65f07d83bf21659a8c10a52c54d7747
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/9b26056393df...166e47d1…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/51660276
--
You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications