Last modified: 2014-07-25 02:49:39 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 T57226, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55226 - -titleregex only searches mainspace
-titleregex only searches mainspace
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:46 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-25 02:49 UTC (History)
2 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:46:40 UTC
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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:46:42 UTC
To clarify, most of the files in http://commons.wikimedia.org/wiki/Category:Nietzsche%27s\_Werke or any of its subcats, should have been found, to name just a few hundred - as well as the category itself, I suppose.
Comment 2 Amir Ladsgroup 2014-07-24 14:05:00 UTC
It's probably fixed somehow:
http://paste.ubuntu.com/7847797/

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


Navigation
Links