https://bugzilla.wikimedia.org/show_bug.cgi?id=55226
Web browser: --- Bug ID: 55226 Summary: -titleregex only searches mainspace Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1386/ Reported by: bewareofdoug Created on: 2011-12-06 22:56:55 Subject: -titleregex only searches mainspace Original description: Using the -titleregex parameter to a replace.py on the wikimedia commons only gets me hits in the main (gallery) space not in file/image space where I need it to. setting -namespace:6 does nothing and setting -prefixindex:file 'adds' mainspace content with the word file in front. The same result is obtained when attempting to look in userspace (though I didn't try it with -namespace:). An example is: python replace.py -titleregex:".*Nietzsche.*" foooooooo bar
version.py output: Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04) Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55226
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- To clarify, most of the files in http://commons.wikimedia.org/wiki/Category:Nietzsche%27s%5C_Werke or any of its subcats, should have been found, to name just a few hundred - as well as the category itself, I suppose.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55226
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1386
https://bugzilla.wikimedia.org/show_bug.cgi?id=55226
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ladsgroup@gmail.com Resolution|--- |WORKSFORME
--- Comment #2 from Amir Ladsgroup ladsgroup@gmail.com --- It's probably fixed somehow: http://paste.ubuntu.com/7847797/
pywikipedia-bugs@lists.wikimedia.org