http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9917
Revision: 9917
Author: binbot
Date: 2012-02-21 00:07:55 +0000 (Tue, 21 Feb 2012)
Log Message:
-----------
Some documentation of require-title
Modified Paths:
--------------
trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py
===================================================================
--- trunk/pywikipedia/replace.py 2012-02-20 15:54:09 UTC (rev 9916)
+++ trunk/pywikipedia/replace.py 2012-02-21 00:07:55 UTC (rev 9917)
@@ -145,7 +145,7 @@
"""
from __future__ import generators
#
-# (C) Daniel Herding & the Pywikipedia team, 2004-2011
+# (C) Daniel Herding & the Pywikipedia team, 2004-2012
#
__version__='$Id$'
#
@@ -287,6 +287,12 @@
inside-tags
A list of strings. These strings must be keys from the
exceptionRegexes dictionary in pywikibot.replaceExcept().
+ require-title
+ Opposite of title. Only pages with titles that are matched by
+ ALL of these regular expressions will be processed.
+ This is not an exception, and is here for technical reasons.
+ Listing the same regex in title and require-title will thus
+ prevent the bot of doing anything.
"""
self.generator = generator