Last modified: 2014-09-28 08:36:30 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 T57024, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55024 - Support of preload param in page.get()
Support of preload param in page.get()
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Normal enhancement
: ---
Assigned To: Pywikipedia bugs
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:05 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-28 08:36 UTC (History)
3 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:05:46 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/320/
Reported by: Anonymous user
Created on: 2012-11-17 21:33:36
Subject: Support of preload param in page.get()
Original description:
Would it be nice to support  'inprop': 'preload' for 'prop': 'info' when calling query GetData\(\) to get text even if page is does not exist.

It could be added as argument to page.get\(..., preload = False\) and used to return data\['query'\]\['pages'\]\["-1"\]\['preload'\] with something like:
if data\['query'\]\['pages'\].keys\(\)\[0\] == "-1":
if 'missing' in pageInfo:
if preload:
....

That would be useful when trying to get text in still not created page.
This kind of pages are quite common on en:Wikisource, due text layer being already present in used djvu files.

E.g. \[Page:Debates in the Several State Conventions, v1.djvu/189\].

Thanks and bye
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:05:48 UTC
Sorry, was logged off when submitted this.
mpaa
Comment 2 Mpaa 2014-09-28 08:36:30 UTC
Supported in core with page.preloadText().

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


Navigation
Links