jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] WikibasePage: Allow saving wikibase pages without mwpfh ......................................................................
[FIX] WikibasePage: Allow saving wikibase pages without mwpfh
Bug: 69664 Change-Id: I086dcaa88a1cae61ffa3a4811db9948cc34f9167 --- M pywikibot/page.py 1 file changed, 14 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index a9ca948..13a5010 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -2779,6 +2779,20 @@ return False return 'lastrevid' in self._content
+ def botMayEdit(self): + """ + Return whether bots may edit this page. + + Because there is currently no system to mark a page that it shouldn't + be edited by bots on Wikibase pages it always returns True. The content + of the page is not text but a dict, the original way (to search for a + template) doesn't apply. + + @return: True + @rtype: boolean + """ + return True + def get(self, force=False, *args, **kwargs): """ Fetch all page data, and cache it.
pywikibot-commits@lists.wikimedia.org