Last modified: 2013-10-12 10:36:37 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 T57159, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55159 - exists function (wikipedia.py) doesn't work well on Wikidata
exists function (wikipedia.py) doesn't work well on Wikidata
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:35 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-12 10:36 UTC (History)
4 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:35:10 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1547/
Reported by: hazard-sj
Created on: 2012-12-09 02:20:09
Subject: exists function (wikipedia.py) doesn't work well on Wikidata
Original description:
Hello, page.exists\(\) isn't working properly on Wikidata \(for items at least, haven't checked for non-items\). It always returns False.
\(r10746\)
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:35:12 UTC
- **priority**: 5 --> 8
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:35:13 UTC
- **priority**: 8 --> 7
Comment 3 Maarten Dammers 2013-10-10 18:27:23 UTC
Is this still the case? Is this in 1.0 (compat) or 2.0 (core)?
Comment 4 Kunal Mehta (Legoktm) 2013-10-10 18:48:35 UTC
It should not be an issue in core.
Comment 5 Mpaa 2013-10-10 21:16:20 UTC
Cannot reproduce:
>>> import wikipedia as pywikibot
>>> s = pywikibot.getSite('wikidata', 'wikidata')
>>> p = pywikibot.DataPage(s, 'Q1942244')
>>> print p.exists()
True
>>> p = pywikibot.Page(s, 'Q1942244')
>>> print p.exists()
True
Comment 6 xqt 2013-10-12 10:36:37 UTC
I guess this has been solved months ago.

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


Navigation
Links