Page MenuHomePhabricator

Support of preload param in page.get()
Closed, DeclinedPublic


Originally from:
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

Version: compat-(1.0)
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:15 AM
bzimport set Reference to bz55024.
bzimport added a subscriber: Unknown Object (????).

Sorry, was logged off when submitted this.

Supported in core with page.preloadText().

Aklapper lowered the priority of this task from Medium to Lowest.Jun 5 2015, 1:41 PM
Aklapper subscribed.

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out Thank you for your understanding.

Xqt subscribed.

Feature request. No longer supported.