https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
Web browser: --- Bug ID: 54555 Summary: Force retrieval of last edit time Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/571/ Reported by: strainu Created on: 2012-10-27 15:35:07 Subject: Force retrieval of last edit time Original description: This patch changes the Page.editTime function in order to allow the user to request a valid editTime even if the page has not yet been fetched. The API call used is theoretically much lighter than retrieving the whole page. The default behavior remains unchanged.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- forceEditTime.patch
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- As a performance optimization, line 1256 could read
if force and not self._editTime:
However, I wrote the patch without checking if the editTime has been fetched because "force" should imply that the value is updated
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/patches/571
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |crangasi2001@yahoo.com, | |ladsgroup@gmail.com Summary|Force retrieval of last |Add force option to |edit time |editTime Severity|normal |enhancement
--- Comment #3 from Amir Ladsgroup ladsgroup@gmail.com --- The patch you made can be added to both core (in page.py) and compat (wikipedia.py) even though the patch is made for compat.
Sounds like a good idea
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
--- Comment #4 from Strainu crangasi2001@yahoo.com --- Hmm, I had forgot about this patch, despite the fact that I use it daily :)
Do you want me to put the patch up for review?
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
--- Comment #5 from Amir Ladsgroup ladsgroup@gmail.com --- Yes, that would be awesome :)
https://bugzilla.wikimedia.org/show_bug.cgi?id=54555
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance CC| |jayvdb@gmail.com
pywikipedia-bugs@lists.wikimedia.org