https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
Web browser: --- Bug ID: 55256 Summary: Page.templates() cache does not respect get_redirect 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/bugs/1257/ Reported by: tgr_ Created on: 2010-10-31 10:39:27 Subject: Page.templates() cache does not respect get_redirect Original description: Steps to reproduce:
page = wikipedia.Page(someSite, someRedirect) page.templates() # returns [] page.templates(get_redirect=True) # returns [] from cache even if the page does have templates
Pywikipedia [http] trunk/pywikipedia (r8690, 2010/10/28, 15:34:19) Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1257
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- *** Bug 55227 has been marked as a duplicate of this bug. ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy Priority|Unprioritized |High
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- TEST SCRIPT: import pywikibot p = pywikibot.Page(pywikibot.getSite("en", "wikipedia"), "Wikipedia:K") print p.templates() print p.templates(get_redirect=True) p = pywikibot.Page(pywikibot.getSite("en", "wikipedia"), "Wikipedia:K") print p.templates(get_redirect=True)
CONFIRMED on compat: Pywikibot: [https] r/pywikibot/co (r10375, 80b6c36, 2013/10/25, 20:37:20, ok)
The bug does not exist on core because the API is different (in an incompatible way, see bug 56188
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Version|unspecified |compat (1.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=56188
pywikipedia-bugs@lists.wikimedia.org