Matěj Suchánek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/337080 )

Change subject: Update content after editing entity
......................................................................

Update content after editing entity

Previously, only the latest revision id would be updated, so it would
be necessary to force reloading the latest content from the wiki.

Change-Id: I92e0bf1fe854de4dd521b8801e64a8ce13ba2202
---
M pywikibot/page.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/80/337080/2

diff --git a/pywikibot/page.py b/pywikibot/page.py
index b77ba4a..023f32c 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3837,6 +3837,9 @@
         if lazy_loading_id or self.id == '-1':
             self.__init__(self.site, title=updates['entity']['id'])
 
+        self._content = updates['entity']
+        self.get()
+
     def editLabels(self, labels, **kwargs):
         """
         Edit entity labels.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92e0bf1fe854de4dd521b8801e64a8ce13ba2202
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to