http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11384
Revision: 11384 Author: valhallasw Date: 2013-04-18 20:41:33 +0000 (Thu, 18 Apr 2013) Log Message: ----------- fixup for r11383: corrected docs for UserContributionsGenerator
The documentation referred to another implementation for the same issue. This commit updates the documentation to the current implementation.
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2013-04-18 20:38:53 UTC (rev 11383) +++ trunk/pywikipedia/pagegenerators.py 2013-04-18 20:41:33 UTC (rev 11384) @@ -808,8 +808,10 @@ def SearchPageGenerator(query, number = 100, namespaces = None, site = None): """ Provides a list of results using the internal MediaWiki search engine. - If the factory object is given, it is used to filter namespaces as defined - by the GeneratorFactory + + namespaces: List of namespace numbers to fetch contribs from. Also accepted + are None (default namespace), [] (all namespaces, default) and + a callable that returns a list of namespaces. """ if site is None: site = pywikibot.getSite()
pywikipedia-svn@lists.wikimedia.org