Mpaa created this task. Herald added subscribers: pywikibot-bugs-list, TerraCodes, Aklapper.
TASK DESCRIPTION Subtask of https://phabricator.wikimedia.org/T57072 In https://phabricator.wikimedia.org/T57072#818875, @valhallasw wrote: > I'm not convinced this would actually work -- Page.delete uses the title (as far as I know), not the page id... > > Invalid titles are an issue for sites that have switched from latin-1 to utf-8 -- sometimes, they still have a latin-1 page title in the database, which then cannot be retrieved nor deleted. It looks like you are right. Page.delete refers itself to Site, and Site.deletepage does explicitly use the page title. However the API does support it. https://en.wikipedia.org/w/api.php?action=paraminfo&modules=delete So maybe we create a subtask to create a -pageid generator which works almost identically to -page And once that is built, someone can enhance Page/Site methods to use pageid to delete if available (and supported by the site's API version?), and fallback to title if the pageid hasnt been loaded. TASK DETAIL https://phabricator.wikimedia.org/T133209 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Mpaa Cc: Aklapper, TerraCodes, pywikibot-bugs-list, Mpaa, valhallasw, Mdupont, jayvdb _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
