Last modified: 2014-09-08 01:56:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55256 - Page.templates() cache does not respect get_redirect
Page.templates() cache does not respect get_redirect
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: High normal
: ---
Assigned To: Pywikipedia bugs
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:52 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-08 01:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:52:25 UTC
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
Comment 1 Merlijn van Deen (test) 2013-10-25 17:09:08 UTC
*** Bug 55227 has been marked as a duplicate of this bug. ***
Comment 2 Merlijn van Deen (test) 2013-10-25 19:42:42 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links