Last modified: 2014-10-04 19:59:13 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 T73538, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71538 - Pages might not be returned in data at first req.submit() in Query.Generators
Pages might not be returned in data at first req.submit() in Query.Generators
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-01 22:49 UTC by Mpaa
Modified: 2014-10-04 19:59 UTC (History)
0 users

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


Attachments

Description Mpaa 2014-10-01 22:49:03 UTC
import pywikibot
site = pywikibot.getSite()
cat = pywikibot.Category(site, 'Speeches')
for i in cat.subcategories(total=5):
    print i

returns empty list even if subcats are present.

api,py gives up at first try if this fails:
    if self.resultkey in self.data["query"]:

it should try again a query has still data to provide:

{u'query-continue': {u'categorymembers': {u'gcmcontinue': u'page|414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c4547452c20414e0a45535341595320414e44204144445245535345532f414e20414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c454745|411259'}}, u'query': {u'userinfo': {u'id': 257091, u'name': u'Mpaa'}}}
Comment 1 Gerrit Notification Bot 2014-10-01 23:06:33 UTC
Change 164258 had a related patch set uploaded by Mpaa:
Bug 71538 - Pages might not be returned at first req.submit()

https://gerrit.wikimedia.org/r/164258
Comment 2 Mpaa 2014-10-01 23:10:13 UTC
the example is on en:wikisource
Comment 3 Gerrit Notification Bot 2014-10-04 18:56:48 UTC
Change 164258 merged by jenkins-bot:
Bug 71538 - Pages might not be returned at first req.submit()

https://gerrit.wikimedia.org/r/164258

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


Navigation
Links