Bugs item #3609967, was opened at 2013-04-03 18:32
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=360996…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ChongDae (cdpark)
Assigned to: Amir (amird)
Summary: interwiki() fails for closed wikipedia
Initial Comment:
Page.interwiki() and PageData.interwiki() fails when wikidata contains sitelinks of closed
wikipedias.
For example, following code is broken now.
---------------------------------------------------------------------------------------------------
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pywikibot
en = pywikibot.getSite('en', 'wikipedia')
mainpage = pywikibot.Page(en, u'Main Page')
interwiki = mainpage.interwiki()
print interwiki
--------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-07 16:36
Message:
Sorry, I misunderstood but every time i run the code on Main Page,bot
returns me invalid title because the iws are invalid titles:
http://en.wikipedia.org/w/index.php?title=Template:Main_Page_interwikis&…
can you give me another example (e.g. a test userspace page)
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-07 16:30
Message:
The problem is from API:
http://en.wikipedia.org/w/api.php?action=query&format=jsonfm&titles…
in comprehension of:
http://en.wikipedia.org/w/api.php?action=query&format=jsonfm&titles…
legoktm: I think your idea is good but unrelated, none of these wikis are
obsolete
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2013-04-06 13:49
Message:
I posted this on the ML about a month ago
(
http://lists.wikimedia.org/pipermail/pywikipedia-l/2013-March/007766.html)
and assumed that because no one responded it wasn't a big deal so I didn't
bother fixing it.
This issue is more than just interwiki links, it's that we prevent read
(and write for stewards) access for a locked (but readable) wiki.
I think the best way to fix it would be to split that list of obsolete
wiki's into 3: locked, deleted, and obsolete (renamed, backwards
compatibility), and then any wiki that is deleted/obsolete throw an error,
but locked does not.
(Setting group to none since this also affects rewrite branch)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=360996…