https://bugzilla.wikimedia.org/show_bug.cgi?id=71104
Bug ID: 71104
Summary: page.isRedirectPage() reports always False after
page.isDisambig()
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
When calling page.isDisambig() a page.isRedirectPage() followed after that is
reporting it always false. Calling 'page.text' does 'fix' that so that it
returns the actual value.
>>> import pywikibot
>>> enwp = pywikibot.Site('en', 'wikipedia')
>>> page = pywikibot.Page(enwp, 'TBBT')
>>> page.isRedirectPage()
True
>>> page = pywikibot.Page(enwp, 'TBBT')
>>> not page.isDisambig()
True
>>> page.isRedirectPage()
False
>>> page.text
'#REDIRECT [[The Big Bang Theory]]'
>>> page.isRedirectPage()
True
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l