XZise created this task. XZise added a subscriber: XZise. XZise added projects: pywikibot-core, Pywikibot-pagegenerators. XZise changed Security from none to none.
TASK DESCRIPTION When I'm using the replace script to go through all pages in several namespaces it only searches through the first:
`python pwb.py replace Planetbox "Infobox/Body" -namespace:1,3,4,11 -start:!`
When I remove `1,` it now searches through namespace 3.
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise Cc: Aklapper, XZise, jayvdb, pywikipedia-bugs
Mpaa added a subscriber: Mpaa. Mpaa added a comment.
I get the following:
File "/home/user/python/core/pywikibot/pagegenerators.py", line 1276, in PreloadingGenerator for page in generator: File "/home/user/python/core/pywikibot/data/api.py", line 1468, in __iter__ self.data = self.request.submit() File "/home/user/python/core/pywikibot/data/api.py", line 1071, in submit raise APIError(code, info, **result["error"]) pywikibot.data.api.APIError: gapmultival_gapnamespace: Only one of '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '100', '101', '102', '103', '104', '105', '106', '107', '114', '115', '828', '829' is allowed for parameter 'gapnamespace'
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Mpaa Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
XZise added a comment.
Ah newer versions of MediaWiki apparently throw an error actively:
* [[http://en.wikipedia.org/w/api.php?action=query&list=allpages&apnames...]] on enwp * [[http://wiki.kerbalspaceprogram.com/w/api.php?action=query&list=allpages&...]] on a 1.21 wiki
I haven't actually checked if at some point it'll return pages from the namespace 4 or if that values is ignored (although the OP indicates that it is ignored). Just to be clear, I was using the 1.21 wiki when I executed above command.
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
Mpaa added a comment.
For some queries, name space can assume a single value, for others it can be a list. See http://en.wikipedia.org/w/api.php?action=help&recursivesubmodules=1#quer... for single value. See https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bbacklinks for multiple values.
class Paraminfo is already understanding if "namespace" is single or multi. This should be used in api.set_namespace when setting namespace for a QueryGenerator.
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Mpaa Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
gerritbot added a project: Patch-For-Review. gerritbot added a comment.
Change 178709 had a related patch set uploaded (by XZise): [FIX] Allow multiple namespaces if available
[[https://gerrit.wikimedia.org/r/178709]]
#patch-for-review
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: gerritbot Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
gerritbot added a comment.
Change 178709 merged by jenkins-bot: [FIX] Allow multiple namespaces if available
[[https://gerrit.wikimedia.org/r/178709]]
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: gerritbot Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
Mpaa closed this task as "Resolved". Mpaa claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T76794
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, XZise, Mpaa, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org