Bugs item #3484027, was opened at 2012-02-03 13:35 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3484027...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: _getContentsNaive doesn't honour "recurse" parameter
Initial Comment:
--- catlib.py (révision 9851) +++ catlib.py (copie de travail) @@ -170,7 +170,12 @@ sortby=sortby, sortdir=sortdir): yield tag, page if tag == SUBCATEGORY and recurse: - for item in page._getContentsNaive(recurse=True, + if recurse: + if type(recurse) is int: + newrecurse = recurse - 1 + else: + newrecurse = recurse + for item in page._getContentsNaive(recurse=newrecurse, sortby=sortby, sortdir=sortdir): yield item
my version:
guillaume@barbaz:~/src/pywikipedia$ python version.py Pywikipedia [http] trunk/pywikipedia (r9850, 2012/02/01, 12:21:57) Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3484027...